Which project does this relate to?#
Start
Describe the bug#
Build hangs if prerender filter function return 0 trues.
Succeedes if at least one true result is returned.
Your Example Website or App#
https://github.com/kompot/tanstack-router-prerender-hangs
Steps to Reproduce the Bug or Issue#
- Clone repo
pnpm install
vite build hangs indefinitely.
- Replace https://github.com/kompot/tanstack-router-prerender-hangs/blob/038b8b4331eed5097a2c6c741a7a8c56e6da033f/vite.config.ts#L18 with
return route.path === "/blocked" (actually existing page) and build succeedes.
Expected behavior#
Build should pass anyway. In case 0 pages are left by filter then it might be some kind of warning that filter function was set but it returned 0 pages and thus nothing was prerendered.
Screenshots or Videos#
No response
Platform#
- Router / Start Version: [e.g. 1.153.2]
- OS: macOS
- Bundler: vite
- Bundler Version: 8.0.0 beta 8
Additional context#
No response
Even without
filterit hangs for me as well, on the following configI've tried different combinations of options but with no success. It just always hangs at the build step.