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
I'm trying to migrate a remix app to react-router v7 with a custom server. It works fine until we tried adding some prerendered page to the react-router config.
To reproduce :
start from the node template npx create-react-router@latest --template remix-run/react-router-templates/node-custom-server
add a prerender option to react-router config prerender:["/"]
run npm run build
Here the error
[react-router] Cannot convert undefined or null to object
at Function.values (<anonymous>)
at groupRoutesByParentId2 (.../node_modules/@react-router/dev/dist/vite.js:2717:10)
at createPrerenderRoutes (.../node_modules/@react-router/dev/dist/vite.js:2728:76)
at handlePrerender (.../node_modules/@react-router/dev/dist/vite.js:2544:16)
at Object.handler (.../node_modules/@react-router/dev/dist/vite.js:2066:13)
at async Promise.all (index 0)
at PluginDriver.hookParallel (file://.../node_modules/rollup/dist/es/shared/node-entry.js:20868:9)
at file://.../node_modules/rollup/dist/es/shared/node-entry.js:21911:13
at catchUnfinishedHookActions (file://.../node_modules/rollup/dist/es/shared/node-entry.js:21286:16)
at Module.build (file://.../node_modules/vite/dist/node/chunks/dep-Cjmyj91f.js:65599:16) {
code: 'PLUGIN_ERROR',
plugin: 'react-router',
hook: 'writeBundle'
}
The text was updated successfully, but these errors were encountered:
I'm trying to migrate a remix app to react-router v7 with a custom server. It works fine until we tried adding some prerendered page to the react-router config.
To reproduce :
npx create-react-router@latest --template remix-run/react-router-templates/node-custom-server
prerender:["/"]
npm run build
Here the error
The text was updated successfully, but these errors were encountered: