T
TanStack2mo ago
ambitious-aqua

Could not find match for from: /pardavejai/$publicFreelancerProfileName/ or basically any link

Hey, I recently migrated to tanstack-router, I use Vite file based routing with React and have a general setup like in the image. The problem is that any Link I click - via useNavigate or Link component I get dozens of these console warnings for any click I make, even though I seem to have everything set up correctly, the Link's to props are type-checked, I pass in the params and I use the auto-generated from file names paths. I get redirected to the route - just with a lot of warnings. What could possibly be causing this? How could I fix this? I noticed this is an issue for other people too, especially with the recent update: https://github.com/TanStack/router/issues/4010
GitHub
Error "Invariant failed: Could not find match for from" when layout...
Which project does this relate to? Router Describe the bug When trying to use the layout routing file, the routes created are correct but when trying to open one of the route using component, it fa...
No description
1 Reply
stormy-gold
stormy-gold2mo ago
as per de state of the very issue you linked, there's no good solution: it's a bug

Did you find this page helpful?