TanStackT
TanStack15mo ago
5 replies
full-green

file-based routing and nested paths (seems to be broken)

While rewriting my code-based routing app to a file-based one, I faced a strange thing — I can’t figure out how to create nested paths. During my searches for similar issues in history, I came across a few now-closed issues on gh like https://github.com/TanStack/router/issues/832 , but they were of no help for me 😭

I’ve reproduced bug (?) in a devbox here: https://codesandbox.io/p/devbox/6k9wl6
And here is a working example with code-based routing: https://codesandbox.io/p/devbox/xnktj8

Is this my thing or router’s? If it’s my code, how can I fix it?
GitHub
Describe the bug Not sure if this is a bug report or a feature request. Nested routes don't seem to work out of the box with file-based routing. The CLI uses the root as every route's paren...
File-based routing doesn't support nested routes · Issue #832 · Tan...
Was this page helpful?