Router fails to work properly on navigation
LynithDev opened this issue · 7 comments
Describe the bug
On some of the environments my app is being run on, the entire routing system fails to work, throwing an error in console:
Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'match().path')
Seems to be coming from routing.ts
Thanks in advance
Your Example Website or App
.
Steps to Reproduce the Bug or Issue
- Attempt to navigate to a different route
- Error gets thrown
Expected behavior
Expected to navigate to a different route, however got an error and the entire router stopped working.
Screenshots or Videos
No response
Platform
- OS: macOS 14.4.1
- Browser: Safari (Specifically WebKit through Tauri)
- Version: 17.4.1
Additional context
No response
Yeah seems odd to happen intermittently or platform specific. It should be retrieving matches that exist. I haven't seen this before but a reproduction could probably help narrow this down quickly.
That's the problem, I can't really reproduce it on my end either and a co-worker with a very similar setup (macOS + Safari/webkit as well) can't either.
I think I was able to create a reproducible example. I do apologize as it's not perfectly minimal as it was adapted from a real-world usage that I've been troubleshooting for a few days, but I think it illustrates the problem well, which seems to stem from nested routes in combination with signals/computations run in the <Router>
root
component.