Issue with Electron & vite & tanstack
Hi guys, having some issues with electron & vite & tanstack:
Failed to resolve import "./routeTree.gen" from "src/renderer/src/app.tsx". Does the file exist?
The routeTree never generate, there is my eletron.vite.config.ts:
4 Replies
conscious-sapphireOP•2y ago
And that's because of that:
Error: ENOENT: no such file or directory, scandir '/Users/user/development/electron/esthERP/src/routes'
=> The src file & routes are in /renderer
conscious-sapphireOP•2y ago

ratty-blush•2y ago
Will need a reproduction for this.
Also, make sure the
generatedRouteTree and routesDirectory options are correctly mapped to your their intended destinations.
https://tanstack.com/router/latest/docs/framework/react/guide/file-based-routing#optionsconscious-sapphireOP•2y ago
that was the configuration. Thanks 🙂