next/router not mounted using pages directory updated the next version from 15.0.3 to 15.2.3
Unanswered
American black bear posted this in #help-forum
American black bearOP
Hi, I am using the pages directory and when running the app getting the error next router not mounted.
I saw the documentation it is mentioned to use next/compat/router but I will need to change in 195 files if I do that.
Is there any other solution or why am I getting this error. Even if I am using pages structure
I saw the documentation it is mentioned to use next/compat/router but I will need to change in 195 files if I do that.
Is there any other solution or why am I getting this error. Even if I am using pages structure
4 Replies
American black bearOP
Can someone please help.
@American black bear Hi, I am using the pages directory and when running the app getting the error next router not mounted.
I saw the documentation it is mentioned to use next/compat/router but I will need to change in 195 files if I do that.
Is there any other solution or why am I getting this error. Even if I am using pages structure
Clumber Spaniel
cant you just replace in files
American black bearOP
It's a big project and approx 195 files will be affected, it is already live in production
American black bearOP
I tried to reproduce the same issue in a minimal setup it was not reproducible there but in our project it is being reproduced. Can someone please help