Skip to content

Conversation

@jacob-ebey
Copy link
Member

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Nov 4, 2025

🦋 Changeset detected

Latest commit: 1707040

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
@react-router/dev Major
@react-router/fs-routes Major
@react-router/remix-routes-option-adapter Major
create-react-router Major
react-router Major
react-router-dom Major
@react-router/architect Major
@react-router/cloudflare Major
@react-router/express Major
@react-router/node Major
@react-router/serve Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jacob-ebey jacob-ebey merged commit 7a9ff8c into dev Dec 3, 2025
8 checks passed
@jacob-ebey jacob-ebey deleted the preview_server branch December 3, 2025 00:18
@github-actions
Copy link
Contributor

🤖 Hello there,

We just published version 7.11.0-pre.0 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

@github-actions
Copy link
Contributor

🤖 Hello there,

We just published version 7.11.0 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

andreiborza added a commit to getsentry/sentry-javascript that referenced this pull request Dec 17, 2025
The newly released [React Router
7.11.0](remix-run/react-router#14507) introduced vite
preview support(remix-run/react-router#14507). This
change has a bug that affects SPA mode (ssr: false). When building in SPA mode,
React Router correctly builds the server bundle (build/server/index.js) and then
removes it with the message "Removing the server build... due to ssr:false".

The new vite preview implementation  7.11.0 doesn't account for this removal
and attempts to import the deleted `build/server/index.js` file when starting
the preview server, causing the `Cannot find module '/build/server/index.js'`
issue.
andreiborza added a commit to getsentry/sentry-javascript that referenced this pull request Dec 17, 2025
The newly released [React Router
7.11.0](remix-run/react-router#14507) introduced
vite preview
support(remix-run/react-router#14507). This
change has a bug that affects SPA mode (`ssr: false`).

When building in SPA mode, React Router correctly builds the server
bundle (`build/server/index.js`) and then removes it with the message
`Removing the server build... due to ssr:false`.

The new vite preview implementation doesn't account for this removal and
attempts to import the deleted `build/server/index.js` file when
starting the preview server, causing:

 > Cannot find module '/build/server/index.js'


Closes #18549 (added automatically)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants