Electron app doesn't load when using Tanstack Router
I am currently having an issue with Tanstack Router is an ElectronForge project with Webpack here
For the moment, I have setup my project with 0 error from anywhere is the code. But when I run the project, the console tells me different:
and the problem is here, at the index.tsx file, at the end of createFileRoute("/") function.
I did follow the project in this link, provided by Tanstack docs in the Webpack installation: https://github.com/TanStack/router/tree/main/examples/react/quickstart-webpack-file-based but still, it doesn't work.
And one more thing: I think I might wrong on this one, but if I use import, instead of require for all the Tanstack built-in components and functions, like <Link/> or here it is the createRootRoute function, then everything will break down, at least for types.
Can anyone spot a problem in my code?
Thanks
GitHub
router/examples/react/quickstart-webpack-file-based at main · TanS...
🤖 Fully typesafe Router for React (and friends) w/ built-in caching, 1st class search-param APIs, client-side cache integration and isomorphic rendering. - TanStack/router




1 Reply
conscious-sapphire•5mo ago
Are you using the hash router? More code context would be helpful