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?5 Replies
deep-jadeā¢3w ago
try
bun run build
i expect the same issue, but we never knowstormy-goldOPā¢3w ago
The same issue...
deep-jadeā¢3w ago
if it doesnt work, try deleting
node_modules, dist, .output, and other build dirs
+ can you provide your vite config ?
might be a plugin order issue now that i think about itstormy-goldOPā¢3w ago
I've deleted the
node_modules and reinstalled, and now bun dev showed be different error, about conflicting routes. I've deleted one of index.tsx files that caused the conflict, and was able to run this time!
@notKamui thank you for nudging me in right direction šdeep-jadeā¢3w ago
nice