Skip to content

chore(e2e): Pin to react-router 7.10.1 in spa e2e test #18549

Closed

Description

@github-actions

Note

The pull request "chore(e2e): Pin to react-router 7.10.1 in spa e2e test" was created by @andreiborza but did not reference an issue. Therefore this issue was created for better visibility in external tools like Linear.

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 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'

Activity

  1. linear commented on Dec 17, 2025

    @linear
  2. added a commit that references this issue on Dec 17, 2025
    97e0be0
  3. github-actions commented on Dec 18, 2025

    @github-actions
    ContributorAuthor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #18548, which was included in the 10.32.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions