question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spurious "Invalid href passed to router" with Next 9.1.5

See original GitHub issue

Bug 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
timneutkenscommented, Dec 18, 2019

Unfortunately it’s close to impossible to help without a reproduction.

0reactions
balazsorban44commented, Jan 30, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found