[vite] Internal server error: [...]routeTree.gen.ts:28:1: ERROR: Expected identifier but found "/"
I am setting up a new vite-react project and intend to use tanstack-router.
I have followed the Quick start instructions, but end up getting the following error when I run the development server.
I have copied and named the files and directories as per the docs;
__root.tsx
, about.lazy.tsx
, index.lazy.tsx
, main.tsx
.
1 Reply
automatic-azureOP•8mo ago
Seems like the generated file
routeTree.gen.ts
was outdated.
I deleted it, and re-ran the dev server. The file was re-generated, and everything works now.