chore(e2e): Pin to react-router 7.10.1 in spa e2e test#18548
Merged
andreiborza merged 1 commit intodevelopfrom Dec 17, 2025
Merged
chore(e2e): Pin to react-router 7.10.1 in spa e2e test#18548andreiborza merged 1 commit intodevelopfrom
andreiborza merged 1 commit intodevelopfrom
Conversation
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
that referenced
this pull request
Jan 7, 2026
This unpins the React Router version from 7.10.1 to ^7.11.0 to allow automatic updates when [the SPA mode vite preview bug](remix-run/react-router#14672) is fixed upstream. **Background**: React Router 7.11.0 introduced a bug where vite preview attempts to load the deleted server build in SPA mode (ssr: false). We [pinned to 7.10.1 as a workaround](#18548), but this branch prepares for future unpinning once the issue is resolved. --------- Co-authored-by: Charly Gomez <charly.gomez@sentry.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The newly released React Router 7.11.0 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 messageRemoving 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.jsfile when starting the preview server, causing:Closes #18549 (added automatically)