TanStackT
TanStack15mo ago
2 replies
verbal-lime

Access routes other than route leads to cannot get route

Hi, I have my file-based routes like this the screenshot
If I try navigating from root to /raffle-details/$id, or reload that page, it'd work normally in dev server (vite).
The issue happens with the build. I ran live-server and it was able to open the root route, then the details route. But if I access the details route directly, or reload that page, I'll get Cannot get page (screenshot).

I try adding a notFoundComponent, it was not able to load this component as well.

Any ideas? Thank you in advance!
2024-10-29_at_19.18.502x.png
2024-10-29_at_19.21.482x.png
2024-10-29_at_19.21.542x.png
Was this page helpful?