-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CF Worker cannot use "nodejs_compat" with 1.18.0 (and previous versions) due to being polyfilled as unsupported #6715
Comments
Hi @markdalgleish , sorry for tagging you but I saw you are dealing with polyfills and wanted to bring this issue to your attention. Due to the eco-system I suspect that one way to resolve it is to allow us to selectively set what gets polyfilled for browser and server e.g. Thank you. |
@ivogt Thanks for adding some more context! I've just opened a PR upstream to add support for this to the underlying esbuild polyfills plugin. |
Am I correct in understanding that there still needs to be a small change made in Remix to read a |
Yes that's right. I'm also thinking we might want to exclude |
Yeah.. might be worth taking a peek in the codebase if there are other modules that will just throw. |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
What version of Remix are you using?
1.18.0 (happens on all previous versions)
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
add:
compatibility_flags = [ "nodejs_compat" ]
nom run dev
Expected Behavior
Do not polyfill
node:async_hooks
for workers or allow config to exclude from being poly filled.Actual Behavior
node:async_hooks
gets polyfilled bynode-modules-polyfills
which changes the module to unimplemented stub.The text was updated successfully, but these errors were encountered: