Feedback
The nodejs_compat_v2 flag is not enabled automatically as stated in the docs here Compatibility flags · Cloudflare Workers docs
I have a compatibility date of Jan 20, 2026 which is obviously “2024-09-23 or later” and yet enabling only the nodejs_compat flag my build fails. While enabling only nodejs_compat_v2 flag my build succeeds.
The documentation should recommend enabling node_js_compat_v2 and not using node_js_compat, or at least make very clear that they are not equivalent!