T
TanStack11mo ago
rival-black

will the vite server generate the routeTree if I've deleted it

i've gotten into a weird state with customizing the config (and i'll probably continue to tweak it) and seem to have gotten my project into a tricky state do i need to manually create this file, or should it be autogenerating when i boot the dev server?
2 Replies
rival-black
rival-black11mo ago
@jack in my experience it'll be recreated if it doesn't exist. FWIW I have found that routeTree.gen.ts likes to open up in VS Code (not sure why), and if it's open, sometimes updates don't save. I need to make sure the file is not opened for it to be written to correctly.
equal-aqua
equal-aqua11mo ago
yes it should be re-generated if missing you can also just run the build command

Did you find this page helpful?