workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🐛 BUG:A request to the Cloudflare API (/accounts/382e42b780c451838ecdabbb744594bf/workers/scripts/my-project) failed. Uncaught Error: Dynamic require of "node:stream" is not supported at null.<anonymous> (worker.js:9:11) at null.<anonymous> (file:///C:/Users/nguye/my-project/node_modules/unenv/runtime/node/console/index.mjs:1:26) at null.<anonymous> (worker.js:988:3) [code: 10021]

Open thuanent opened this issue 1 year ago • 1 comments

Which Cloudflare product(s) does this pertain to?

Workers AI

What version(s) of the tool(s) are you using?

wrangler 3.78.12

What version of Node are you using?

No response

What operating system and version are you using?

Window11

Describe the Bug

🐛 BUG:A request to the Cloudflare API (/accounts/382e42b780c451838ecdabbb744594bf/workers/scripts/my-project) failed. Uncaught Error: Dynamic require of "node:stream" is not supported at null. (worker.js:9:11) at null. (file:///C:/Users/nguye/my-project/node_modules/unenv/runtime/node/console/index.mjs:1:26) at null. (worker.js:988:3) [code: 10021]

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response

thuanent avatar Sep 27 '24 19:09 thuanent

Hiya, can you try the prelease in this PR here: https://github.com/cloudflare/workers-sdk/pull/6894#issuecomment-2393617974 and see if you get a more helpful error. Can you also check if you've definitely got a default export on your worker script?

emily-shen avatar Oct 10 '24 13:10 emily-shen

We haven't heard from you in while so I'm going to close this issue for now. If you're still running into problems feel free to open a new issue with more details and we can investigate further.

penalosa avatar Nov 08 '24 20:11 penalosa