Error: invariant expected app router to be mounted at Form
Unanswered
Cape lion posted this in #help-forum
Cape lionOP
Whenever I use
const router = useRouter();
hook, I get this error.
My project structure:
src -
app - RootLayout
app -
(auth) - AuthLayout
login - page.tsx
I am using html and body on RootLayout only
const router = useRouter();
hook, I get this error.
My project structure:
src -
app - RootLayout
app -
(auth) - AuthLayout
login - page.tsx
I am using html and body on RootLayout only