Runtime Error while routing.
Sometimes I'm having this error while routing. The probabilty increases if I route rapidly.

8 Replies
flat-fuchsia•3y ago
If you can get a consistent reproduction in a stackblitz or CodeSandBox, I’ll fix it in a jiffy
correct-apricotOP•3y ago
Actually it is really hard to reproduce because even in my application I don't have this problem with all routes. Actually there is a page that loads slowly. I'm only having this problem if I route to that page and route back without waiting it to be loaded.
correct-apricotOP•3y ago
I added null checks anywhere routeId is used like x.routeId in node_modules/@tanstack/react-router/build/umd/index.production.js to see if the problem will be solved. Now the error is changed. I attached the image of the error message to this message.

correct-apricotOP•3y ago
Production build of my application is much more faster so I don't have this problem there. So I guess tanstack router checking something before it is ready.
flat-fuchsia•3y ago
I'll take a look at this one as well.
Please open an issue for this
correct-apricotOP•3y ago
GitHub
Runtime Error While Routing : Uncaught runtime errors: ERROR Cannot...
Describe the bug I'm having this runtime error while routing a heavyweight page and go back immediately after the page loads. This problem only occurs on local webpack-dev-server but not on pro...
correct-apricotOP•3y ago
Hey, someone added reproduction!
flat-fuchsia•3y ago
I think this is the same issue @Jason is experiencing. I should have a fix soon.