Spurious "Invalid href passed to router" with Next 9.1.5
See original GitHub issueBug report
Describe the bug
When attempting to upgrade to Next 9.1.5, our app crashes as soon as we attempt to use the router.
router.replace('/testing/foo') results in an error saying “invalid href passed to router”.
To Reproduce
Unfortunately this happens in our private repo.
Expected behavior
Router redirects to the correct destination
Screenshots
System information
- Version of Next.js: 9.1.5
Additional context
This may be an issue with trailing dependencies as we have not been able to upgrade all the dependencies that Next 9.1.5 uses.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Invalid href passed to router error after fresh installed create ...
After installed nextjs app on my local machine using create-next-app I get this error in console Invalid href passed to router .
Read more >9 Routing-Update Algorithms
Distance-vector is the simplest routing-update algorithm, used by the Routing Information Protocol, or RIP. Version 2 of the protocol is specified in RFC...
Read more >NFSv4.0 Migration: Specification Update RFC 7931
They assume that locking state, including both state ids and clientid4s, should be transferred as part of transparent state migration.
Read more >RFC 7530: Network File System (NFS) Version 4 Protocol
Values greater than 999,999,999 for nseconds are considered invalid. This data type is used to pass time and date information. A server converts...
Read more >Untitled
Fixed bad URL, Source0, and bogus date in spec. Resolves: #1330328 This update is available via the Unbreakable Linux Network (ULN) and the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Unfortunately it’s close to impossible to help without a reproduction.
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.