TanStackT
TanStack3mo ago
8 replies
foolish-indigo

I deleted routeTree.gen.ts and now cannot re-generate it

In TS Router, I've deleted the generated routeTree.gen.ts in hope that re-generating it would resolve some bugs. But the bun dev that is supposed to generate the file now gives me error Pre-transform error: Failed to resolve import "./routeTree.gen" from "src/main.tsx". Does the file exist?. Is there special command that I could use to initially generate the file?
Was this page helpful?