-
Notifications
You must be signed in to change notification settings - Fork 323
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
🐛 BUG: Uncaught SyntaxError: Export 'ByteLengthQueuingStrategy' is not defined in module #1711
Comments
The |
It’s a library who use the import. |
If I may ask, which library is it? One off npm? |
it was undici |
Couple of things here. We don't really have any intention of supporting the full range of node.js built-ins in workers. The plan has always been to support a subset that makes the most sense. We expect that there are always going to be gaps in what will work. Undici is one that I'm not sure will ever be fully supported in this environment, and it's not clear we should even try. Internally it makes use of a number of Node.js built-ins we do not intend to implement right now (e.g. That said, there's likely no harm in implementing support for the |
Thanks a lot for considering the request ! i would love to contribute and make this happen. do there is a guide or a way to understand how i can make the PR ? |
Wait! hmm... I went to go look to show you exactly where to make the change... and it's already there... it actually should be working. Are you enabling the |
I have provided a repository to demonstrate the problem here: |
This was closed automatically since #1873 was merged but the fix likely won't hit production or the updated workerd release until next week sometime. |
Which Cloudflare product(s) does this pertain to?
Workers Runtime
What version(s) of the tool(s) are you using?
3.28.1 [Wrangler] and tested with 3.28.3 [Wrangler]
What version of Node are you using?
20.11.1
What operating system and version are you using?
Mac Sonoma 14.2.1
Describe the Bug
Observed behavior
When using
node:stream/web
, there is a weird behavior where unrelated lib is said missing.Expected behavior
No error
Steps to reproduce
Clone the repo and try to deploy.
Please provide a link to a minimal reproduction
https://github.com/Cap-go/wrangler_bug
Please provide any relevant error logs
The text was updated successfully, but these errors were encountered: