-
Notifications
You must be signed in to change notification settings - Fork 47.2k
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 ReferenceError: MessageChannel is not defined #31827
Comments
I made a repo with the steps to reproduce this: https://github.com/phase/test-astro-react19-cf-workers |
Had to downgrade to 18.x.x to make the deploy working again. |
applyPolyfill from message-port-polyfill |
I have same problem in my ReactRouterV7 project. 122| 'astro:build:setup': ({ vite, target }) => {
123| if (target === 'server') {
124| vite.resolve ||= {};
125| vite.resolve.alias ||= {};
126| const aliases = [
127| {
128| find: 'react-dom/server',
129| - replacement: 'react-dom/server.browser',
129| + replacement: 'react-dom/server.edge',
130| },
131| ]; In ReactRouterv7, I can fix same. (fix |
React version: 19.0.0
Steps To Reproduce
wrangler deploy
The current behavior
Uncaught ReferenceError: MessageChannel is not defined
The expected behavior
Should work in the same way as latest 18 version.
https://github.com/facebook/react/blob/6a4b46cd70d2672bc4be59dcb5b8dede22ed0cef/packages/react-server/src/ReactServerStreamConfigBrowser.js#L16C1-L28C2
The text was updated successfully, but these errors were encountered: