Skip to content

Commit 97e0be0

Browse files
authored
chore(e2e): Pin to react-router 7.10.1 in spa e2e test (#18548)
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)
1 parent ad28c4d commit 97e0be0

File tree

1 file changed

+4
-4
lines changed
  • dev-packages/e2e-tests/test-applications/react-router-7-framework-spa

1 file changed

+4
-4
lines changed

dev-packages/e2e-tests/test-applications/react-router-7-framework-spa/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
},
1919
"dependencies": {
2020
"@sentry/react-router": "latest || *",
21-
"@react-router/node": "^7.5.3",
22-
"@react-router/serve": "^7.5.3",
21+
"@react-router/node": "7.10.1",
22+
"@react-router/serve": "7.10.1",
2323
"isbot": "^5.1.27",
2424
"react": "^18.3.1",
2525
"react-dom": "^18.3.1",
26-
"react-router": "^7.1.5"
26+
"react-router": "7.10.1"
2727
},
2828
"devDependencies": {
2929
"@playwright/test": "~1.56.0",
30-
"@react-router/dev": "^7.5.3",
30+
"@react-router/dev": "7.10.1",
3131
"@sentry-internal/test-utils": "link:../../../test-utils",
3232
"@tailwindcss/vite": "^4.1.4",
3333
"@types/node": "^20",

0 commit comments

Comments
 (0)