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
{{ message }}
Repository navigation
TanStack Start prerender errors without sitemap enabled #5419
The prerender option without a sitemap throws this error:
error during build:
Error: Sitemap is not enabled
at buildSitemap (file:///Users/jan/code/privat/tests/prerender-no-sitemap/node_modules/@tanstack/start-plugin-core/dist/esm/build-sitemap.js:75:11)
at postServerBuild (file:///Users/jan/code/privat/tests/prerender-no-sitemap/node_modules/@tanstack/start-plugin-core/dist/esm/post-server-build.js:46:5)
at async Object.buildApp (file:///Users/jan/code/privat/tests/prerender-no-sitemap/node_modules/@tanstack/start-plugin-core/dist/esm/plugin.js:245:15)
at async Object.buildApp (file:///Users/jan/code/privat/tests/prerender-no-sitemap/node_modules/vite/dist/node/chunks/dep-Chhhsdoe.js:34251:38)
at async CAC.<anonymous> (file:///Users/jan/code/privat/tests/prerender-no-sitemap/node_modules/vite/dist/node/cli.js:641:3)
Activity
HummingMind commentedon Nov 1, 2025
+1
dangnhdev commentedon Nov 8, 2025
tanstack start 1.134.6, seem like it doesn't respect prerender setting in vite.config.ts
vite.config.ts
vite build output:
jofflin commentedon Nov 14, 2025
+1
elite174 commentedon Nov 25, 2025
Same thing for:
elite174 commentedon Nov 25, 2025
My config:
Result config used during the build:
Why? It's different?
elite174 commentedon Nov 25, 2025
commented
enabled: true- it workedelite174 commentedon Nov 25, 2025
Still the result is SSR, no HTML file in dist folder.