Next.js
Next.js router method called during prerendering
Next.js detected router methods such as push, replace, or back being called while prerendering on the server, where no client router instance exists.
Next.js
Next.js detected router methods such as push, replace, or back being called while prerendering on the server, where no client router instance exists.
Observed message
No Router Instance
Why it happens
How to fix it
Official reference
Next.js Docs: No Router InstanceRelated errors
Explore more