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 was testing out the Cloudflare template and it appears to not allow prerendering of pages.
My react-router.config.ts file is here: export default { // Config options... // Server-side render by default, to enable SPA mode set this to false ssr: true, // Prerender selected routes prerender: ["/", "/about"], } satisfies Config;
And the console error when running build is here:
[react-router] Cannot convert undefined or null to object at Function.values (<anonymous>) at groupRoutesByParentId2 (/Users/chrishurst/Github/webiliti/client/node_modules/@react-router/dev/dist/vite.js:2717:10) at createPrerenderRoutes (/Users/chrishurst/Github/webiliti/client/node_modules/@react-router/dev/dist/vite.js:2728:76) at handlePrerender (/Users/chrishurst/Github/webiliti/client/node_modules/@react-router/dev/dist/vite.js:2544:16) at Object.handler (/Users/chrishurst/Github/webiliti/client/node_modules/@react-router/dev/dist/vite.js:2066:13) at async Promise.all (index 0) at PluginDriver.hookParallel (file:///Users/chrishurst/Github/webiliti/client/node_modules/rollup/dist/es/shared/node-entry.js:20868:9) at file:///Users/chrishurst/Github/webiliti/client/node_modules/rollup/dist/es/shared/node-entry.js:21911:13 at catchUnfinishedHookActions (file:///Users/chrishurst/Github/webiliti/client/node_modules/rollup/dist/es/shared/node-entry.js:21286:16) at Module.build (file:///Users/chrishurst/Github/webiliti/client/node_modules/vite/dist/node/chunks/dep-CHZK6zbr.js:65607:16) { code: 'PLUGIN_ERROR', plugin: 'react-router', hook: 'writeBundle' } error: script "build" exited with code 1
Has anybody seen this issue or any idea what it might be?
The text was updated successfully, but these errors were encountered:
Hi all,
I was testing out the Cloudflare template and it appears to not allow prerendering of pages.
My react-router.config.ts file is here:
export default { // Config options... // Server-side render by default, to enable SPA mode set this to
falsessr: true, // Prerender selected routes prerender: ["/", "/about"], } satisfies Config;
And the console error when running build is here:
[react-router] Cannot convert undefined or null to object at Function.values (<anonymous>) at groupRoutesByParentId2 (/Users/chrishurst/Github/webiliti/client/node_modules/@react-router/dev/dist/vite.js:2717:10) at createPrerenderRoutes (/Users/chrishurst/Github/webiliti/client/node_modules/@react-router/dev/dist/vite.js:2728:76) at handlePrerender (/Users/chrishurst/Github/webiliti/client/node_modules/@react-router/dev/dist/vite.js:2544:16) at Object.handler (/Users/chrishurst/Github/webiliti/client/node_modules/@react-router/dev/dist/vite.js:2066:13) at async Promise.all (index 0) at PluginDriver.hookParallel (file:///Users/chrishurst/Github/webiliti/client/node_modules/rollup/dist/es/shared/node-entry.js:20868:9) at file:///Users/chrishurst/Github/webiliti/client/node_modules/rollup/dist/es/shared/node-entry.js:21911:13 at catchUnfinishedHookActions (file:///Users/chrishurst/Github/webiliti/client/node_modules/rollup/dist/es/shared/node-entry.js:21286:16) at Module.build (file:///Users/chrishurst/Github/webiliti/client/node_modules/vite/dist/node/chunks/dep-CHZK6zbr.js:65607:16) { code: 'PLUGIN_ERROR', plugin: 'react-router', hook: 'writeBundle' } error: script "build" exited with code 1
Has anybody seen this issue or any idea what it might be?
The text was updated successfully, but these errors were encountered: