You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sinse next 15.6.0 (or maybe earlier) fake pages folrder doesn't work.
I had next next@^15.3, src/app, src/pages and empty /pages - it worked correctly.
But recently I decided to update nextjs to next@15.6.0-canary.57. And I got the error:
"""
Error: > pages and app directories should be under the same folder
at ignore-listed frames
"""
And if I remove this /pages folder, I get
"""
App Router and Pages Router both match path: /diet
Next.js does not support having both App Router and Pages Router routes matching the same path. Please remove one of the conflicting routes.
"""
How can I use src/pages folder with new version of nextjs (always next makes breaking changes...)?
And I know that I can just rename pages to kinda views, but I don't want
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Sinse next 15.6.0 (or maybe earlier) fake pages folrder doesn't work.
I had next next@^15.3, src/app, src/pages and empty /pages - it worked correctly.
But recently I decided to update nextjs to next@15.6.0-canary.57. And I got the error:
"""
Error: >
pagesandappdirectories should be under the same folderat ignore-listed frames
"""
And if I remove this /pages folder, I get
"""
App Router and Pages Router both match path: /diet
Next.js does not support having both App Router and Pages Router routes matching the same path. Please remove one of the conflicting routes.
"""
How can I use src/pages folder with new version of nextjs (always next makes breaking changes...)?
And I know that I can just rename pages to kinda views, but I don't want
Beta Was this translation helpful? Give feedback.
All reactions