T
TanStack2y ago
xenophobic-harlequin

Saving app-entry.tsx causes "Cannot read properties of undefined (reading 'routeId')"

I'm using File-based routing with layouts. I have an _app layout and _auth layout and some nested routes. I'm using getRouteApi to use some of the route's hooks. In my app-entry.tsx i initialize the router and also have my app providers. I import the App function inside main.tsx. When hitting CTRL+S inside app-entry then i'm receiving this error -> Cannot read properties of undefined (reading 'routeId'). Refreshing the page or hitting CTRL+S in main.tsx or some inside the routes is fixing the problem. Am doing something wrong? Basically when i this occurs, i see in RouterDevTools this (1st image) but when refreshing the page i see the correct paths (2nd image) .
No description
No description
2 Replies
xenophobic-harlequin
xenophobic-harlequinOP2y ago
/_app/_app/operations/tasks should not exist. /_app/operations/tasks is the correct one
xenophobic-harlequin
xenophobic-harlequinOP2y ago
and this is my routes structure
No description

Did you find this page helpful?