Lesson
Troubleshoot Tanstack routeTree.gen Generator
Troubleshoot TanStack Router's routeTree.gen generator by checking the dev server status.
- Access
- Included
- Transcript
- Needs source
In this lesson, we learn how to troubleshoot issues with TanStack Router's automatic generation of the routeTree.gen.ts file.
If the file is not being updated or new routes are not being recognized, the most common cause is that the development server is not running. As a rule of thumb, start the dev server - this resolves the issue, allowing the routeTree.gen.ts file to be properly generated and updated with new routes. This ensures that all routes are correctly registered and type-safe routing features function as expected.