Skip to content

fix(react-router): render pages on Workers when the app has no server entry - #938

Open
hyfdev wants to merge 1 commit into
mainfrom
fix/react-router-edge-entry
Open

hyfdev wants to merge 1 commit into
mainfrom
fix/react-router-edge-entry

Conversation

@hyfdev

@hyfdev hyfdev commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

A React Router app without its own app/entry.server.tsx, as the guide sets it up, returns 500 for every page in dev and in the built Worker:

TypeError: renderToPipeableStream is not a function

Pages now render on Workers, and an app's own server entry still takes precedence.

Without one, React Router falls back to its Node default entry: always on React Router 7, and on React Router 8 when the app depends on @react-router/node or @react-router/serve, as create-react-router apps do.

That entry calls renderToPipeableStream, which the Worker build of react-dom/server doesn't have.

In Worker environments, Void now serves a version of that entry that renders with renderToReadableStream instead, modeled on React Router 8's web default.

The guide now also says React Router 7 needs future.v8_viteEnvironmentApi.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://fix-react-router-edge-entry-void-cloud.voidzero-docs.workers.dev (commit 22a1153)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://e76454bf-void-cloud.voidzero-docs.workers.dev 22a1153 2026-11-27T00:30:33.085Z Visit the dashboard ↗

@hyfdev
hyfdev marked this pull request as ready for review November 27, 2026 00:40
Copilot AI balanced review requested due to automatic review settings November 27, 2026 00:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

This branch has not been deployed

No deployments
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.

2 participants