T
TanStack7mo ago
conscious-sapphire

Tanstack router: Not a good experience so far.

My app is extremely simple and almost no code written. "@tanstack/react-router": "^1.114.3", "@tanstack/react-router-devtools": "^1.114.3", "typescript": "^5.7.2", "vite": "^6.1.0", "react": "^19.0.0", Could it be a problem because i am using docker?
No description
No description
3 Replies
conscious-sapphire
conscious-sapphireOP7mo ago
Also the route tree gen is making constant mistakes:
No description
flat-fuchsia
flat-fuchsia7mo ago
Your vite server really shouldn't restart whenever you change a route, something odd's going on with your config. Can you give a reproduction? Feels like a vite issue and not a router issue. I don't know if you're still on the tanstack router train, but the route tree gen issue might be caused by using the VSCode "Update Imports on rename" functionality I think VSCode updates the routeTree at the same time the generator is updating the file, causing things to get in a completely broken state The vite restart could possibly also be a side-effect of that, not sure
ratty-blush
ratty-blush7mo ago
The VSCode dual write problem is mentioned in the Installation with Vite article, hopefully that settings snippet should help

Did you find this page helpful?