No such module "node:events"

I started seeing this error today:
āœ˜ [ERROR] Error on remote worker: APIError: A request to the Cloudflare API (/accounts/.../workers/scripts/just-worker/edge-preview) failed.

at throwFetchError
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:155221:18)
at fetchResult
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:155134:5)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async createPreviewToken
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:204470:29)
at async createWorkerPreview
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:204491:17)
at async start
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:205214:34) {
text: 'A request to the Cloudflare API
(/accounts/.../workers/scripts/just-worker/edge-preview) failed.',
notes: [
{
text: 'Uncaught Error: No such module "node:events".\n' +
' imported from "index.js"\n' +
' [code: 10021]'
}
],
location: undefined,
kind: 'error',
code: 10021
}
āœ˜ [ERROR] Error on remote worker: APIError: A request to the Cloudflare API (/accounts/.../workers/scripts/just-worker/edge-preview) failed.

at throwFetchError
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:155221:18)
at fetchResult
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:155134:5)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async createPreviewToken
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:204470:29)
at async createWorkerPreview
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:204491:17)
at async start
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:205214:34) {
text: 'A request to the Cloudflare API
(/accounts/.../workers/scripts/just-worker/edge-preview) failed.',
notes: [
{
text: 'Uncaught Error: No such module "node:events".\n' +
' imported from "index.js"\n' +
' [code: 10021]'
}
],
location: undefined,
kind: 'error',
code: 10021
}
I didn't make any changes that I think would cause this. I tried upgrading my wrangler to the latest version & i already have the node compatibility flag set.
4 Replies
DaniFoldi
DaniFoldiā€¢4w ago
Hi, I think this is related to https://discord.com/channels/595317990191398933/895794943182909470/1288251054366134304 and I know the team is working on a fix. Could you please retest when the incident is resolved?
kchro3
kchro3ā€¢4w ago
yeah, it seems like it. thank you -- i'll keep an eye out. Do you happen to know if this issue will affect prod? My production application is working, but I didn't want to push anything to prod if it would start breaking
Walshy
Walshyā€¢4w ago
Hey, This is fixed. Sorry for the issue Prod was not impacted, just dev --remote
DiamondDragon
DiamondDragonā€¢3w ago
i appear to be getting this šŸ˜” with dev --remote
No description
Want results from more Discord servers?
Add your server