Next.jsRunbook 0/2 done
next-router-not-mounted
Next.js Error next-router-not-mounted: NextRouter was not mounted
Error✕ Not retryable · fix the payloadClient
TL;DR · 10-second read
useRouter was imported from next/router inside the App Router. Import useRouter, usePathname and useSearchParams from next/navigation instead.
Identify: does your log match?
What you see · exact log / response
Error: NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted
Fix
Being written
Copy-paste fixes for next-router-not-mounted are in the enrichment queue
The summary above is verified. Paste your full trace into the decoder for a diagnosis now.
Open the decoder →Related errors
Last verified 2026-10-12 · Source: Next.js /errors directory (vercel/next.js) · Official docs ↗ · ~6,600 searches/mo