CanRau
CanRau
Explore posts from servers
CDCloudflare Developers
Created by CanRau on 12/12/2024 in #workers-help
Uncaught ReferenceError: MessageChannel is not defined
Updating different (unrelated) dependencies causes this. At least some seem to be related to React19 (which itself also causes this 🥲 I'm not sure it's directly CF related tho it only happens on wrangler deploy and only after building etc 🤔
Total Upload: 20484.96 KiB / gzip: 3636.26 KiB

[ERROR] A request to the Cloudflare API (/accounts/ddddc353374f7ec886d7d7d97e239a71/workers/scripts/rakkas-cf-origin/versions) failed.

Uncaught ReferenceError: MessageChannel is not defined
at null.<anonymous>
(file://[..]/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-server.browser.production.js:126:15)
in
../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-server.browser.production.js
at null.<anonymous> (entry-cf.js:32:50) in __require2
at null.<anonymous>
(file://[..]/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/server.browser.js:6:7)
in ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/server.browser.js
at null.<anonymous> (entry-cf.js:32:50) in __require2
at null.<anonymous>
(file://[..]/dist/edge/hattip.js:12:62)
in dist/edge/hattip.js
at null.<anonymous> (entry-cf.js:29:59) in __init
at null.<anonymous>
(file://[..]/dist/edge/entry-cf.js:2:1)
[code: 10021]
Total Upload: 20484.96 KiB / gzip: 3636.26 KiB

[ERROR] A request to the Cloudflare API (/accounts/ddddc353374f7ec886d7d7d97e239a71/workers/scripts/rakkas-cf-origin/versions) failed.

Uncaught ReferenceError: MessageChannel is not defined
at null.<anonymous>
(file://[..]/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-server.browser.production.js:126:15)
in
../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-server.browser.production.js
at null.<anonymous> (entry-cf.js:32:50) in __require2
at null.<anonymous>
(file://[..]/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/server.browser.js:6:7)
in ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/server.browser.js
at null.<anonymous> (entry-cf.js:32:50) in __require2
at null.<anonymous>
(file://[..]/dist/edge/hattip.js:12:62)
in dist/edge/hattip.js
at null.<anonymous> (entry-cf.js:29:59) in __init
at null.<anonymous>
(file://[..]/dist/edge/entry-cf.js:2:1)
[code: 10021]
Update: nodejs_compat is already enabled in my wrangler.toml
23 replies
CDCloudflare Developers
Created by CanRau on 4/22/2024 in #workers-help
Move route from 1 worker to another without downtime?
I have a running Worker with a route which proxies basically the whole domain, now I'm starting to use Environments and want to leave the naming to wrangler etc so it's creating a new Worker with -production appended, also want this to have deploys be more explicit -e production so wouldn't want the top-level to be production config. Though when trying to deploy it's complaining about another Worker already using that route. One alternative that just came to mind is renaming the existing worker instead 🤔
2 replies