TanStackT
TanStack6mo ago
1 reply
sad-indigo

Router defining root route as parent route for all file routes

Is there any known reason/quick fix as to why when I create new file routes with nested routes in them it would default the parent route to be the root route rather than the immediate parent route?

Is that something I have to configure?

For example, I have sales/invoices, sales/invoices/new, sales/invoices/$invoiceId

All of those in my routeTree.gen.ts are being defined with the parent route as rootRoute
Was this page helpful?