Typescript don`t work
Guys, is anyone know how to fix this problem? I created new vite React + Typescript project started to setting up tanstack router by getting started guide, but when i added file index.lazy.tsx in routes folder I see an error. And typization for navigation also don't work. Can someone help me with this issue?


3 Replies
harsh-harlequin•10mo ago
try to restart your editor, maybe the ts server didnt pick up the change
idk, i had such issues in the past
are you running the dev server?
If you are using vite and the tanstack vite plugin, the server must be running to continuously update the routeTree.gen.ts file
that's where the type inference comes from
passive-yellowOP•10mo ago
i tried that, didn't work. Yeah routeTree file continuously updating but types not come. It like something with declare module '@tanstack/react-router'
exotic-emerald•10mo ago
can you provide a complete example repo?