T
TanStack13mo ago
wise-white

Exported variable 'router' has or is using name 'FileRouteTypes' from external module src/routeTree

Full error: Exported variable 'router' has or is using name 'FileRouteTypes' from external module "../src/routeTree.gen" but cannot be named. This also happens with RouteRootChildren. I see both of these interfaces inside of routeTree.gen.ts but am not sure how to fix it.
3 Replies
wise-white
wise-whiteOP13mo ago
I should add that the app does load fine and all
adverse-sapphire
adverse-sapphire13mo ago
It's usually composite: true or declaration: true causing this atm It's a bug but if these are false it should not happen
wise-white
wise-whiteOP13mo ago
gotcha, will ignore for now bc i can still load my site and all

Did you find this page helpful?