import { useRouter } from 'next/router';
// Cannot find module 'next/router' or its corresponding type declarations.
{
"name": "site",
"version": "0.1.0",
"type": "module",
"scripts": {
"build": "next build",
"dev": "next dev",
"lint": "next lint",
"start": "next start"
},
"dependencies": {
"@trpc/next": "^10.19.1",
"next": "13.3.0",
"next-auth": "^4.15.0",
I have ran "yarn" to install everything, but it still shows this error, even after restarting the TS server. Not sure what's wrong?
