Skip to content

Conversation

hi-ogawa
Copy link
Contributor

@hi-ogawa hi-ogawa commented Oct 8, 2025

Description

It turned out react-router + cloudflare is also failing on 19.2 with different reason. Here is an error:

11:17:47 AM [vite] Internal server error: WeakRef is not defined
      at new ResponseInstance (/home/hiroshi/code/others/vite-plugin-react/packages/plugin-rsc/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.development.js:2802:40)
      at createResponseFromOptions (/home/hiroshi/code/others/vite-plugin-react/packages/plugin-rsc/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.development.js:4508:14)
      at Object.exports.createFromReadableStream (/home/hiroshi/code/others/vite-plugin-react/packages/plugin-rsc/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.development.js:4895:22)
      at createFromReadableStream (/home/hiroshi/code/others/vite-plugin-react/packages/plugin-rsc/dist/ssr-Cd4SbAaO.js:6:21)
      at routeRSCServerRequest (/home/hiroshi/code/others/vite-plugin-react/node_modules/.pnpm/react-router@7.9.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-router/dist/development/chunk-65XJMMLO.mjs:2640:27)
      at generateHTML (/home/hiroshi/code/others/vite-plugin-react/packages/plugin-rsc/examples/react-router/react-router-vite/entry.ssr.tsx:12:10)
      at maybeCaptureError (runner-worker/index.js:39:12)

WeakRef is available by bumping compatibility_date cloudflare/workerd#3053, opennextjs/opennextjs-cloudflare#660.

@hi-ogawa hi-ogawa marked this pull request as ready for review October 8, 2025 02:31
@hi-ogawa hi-ogawa merged commit 91bcc08 into main Oct 8, 2025
19 of 20 checks passed
@hi-ogawa hi-ogawa deleted the 10-08-chore_rsc_update_compatibility_date_for_weakref_ branch October 8, 2025 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant