Published onOctober 13, 2024NextRouter was not mountedError: NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mountedchange import { useRouter } from 'next/router'; to import { useRouter } from 'next/navigation';all good.Share:facebooktwitterXlinkedinwhatsapptelegram