You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
x Build failed in 565ms
[react-router] Server build file not found in manifest
at invariant (/Users/willy/projects/blog/node_modules/@react-router/dev/dist/vite.js:85:11)
at getServerBuildFile (/Users/willy/projects/blog/node_modules/@react-router/dev/dist/vite.js:2027:3)
at Object.handler (/Users/willy/projects/blog/node_modules/@react-router/dev/dist/vite.js:2997:15)
at async Promise.all (index 0)
at PluginDriver.hookParallel (file:///Users/willy/projects/blog/node_modules/rollup/dist/es/shared/node-entry.js:21763:9)
at file:///Users/willy/projects/blog/node_modules/rollup/dist/es/shared/node-entry.js:22812:13
at catchUnfinishedHookActions (file:///Users/willy/projects/blog/node_modules/rollup/dist/es/shared/node-entry.js:22187:16)
at Module.build (file:///Users/willy/projects/blog/node_modules/vite/dist/node/chunks/dep-CHZK6zbr.js:65607:16)
at buildEnvironment (/Users/willy/projects/blog/node_modules/@react-router/dev/dist/cli/index.js:1529:5)
at async Promise.all (index 0) {
code: 'PLUGIN_ERROR',
plugin: 'react-router',
hook: 'writeBundle'
Before that I get the usual build output all green
vite v5.4.14 building for production...
✓ 3225 modules transformed.
...
✓ built in 4.11s
...
vite v5.4.14 building SSR bundle for production...
✓ 213 modules transformed.
...
Then the error
The text was updated successfully, but these errors were encountered:
I confirmed all routes exist & return 200 (e.g. http://localhost:5173/blog/1628547526)
Tried reverting to 7.2.0 because I saw the error message was introducted in 7.3.0 but get [react-router] Cannot read properties of undefined (reading 'file')
I'm using React Router as a...
framework
Reproduction
Use pre-rendering with this react-reacter-config:
The file:
Then run
npm run build
.package.json:
vite.config.ts:
System Info
Used Package Manager
npm
Expected Behavior
A successful build
Actual Behavior
Before that I get the usual build output all green
Then the error
The text was updated successfully, but these errors were encountered: