T
TanStack4mo ago
deep-jade

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
deep-jade
deep-jadeOP4mo ago
Also the route tree gen is making constant mistakes:
No description
quickest-silver
quickest-silver4mo 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
absent-sapphire
absent-sapphire4mo 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?