Turbopack Error: Invalid segment Static("notes"), catch all segment must be the last segment modifying the path (segments: [Static("api"), Static("auth"), CatchAll("nextauth")]) #86027
armanh20439
started this conversation in
Turbopack Error Report
Replies: 1 comment
-
|
This happens because your route structure is not valid so you can't have a static segment after a catch-all segment. For example, this is invalid: app/api/auth/[...nextauth]/notesCatch-all segments ( ✅ Fix it by either:
app/api/auth/notes/route.ts
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Turbopack version:
40672141Next.js version:
0.0.0Error message:
Beta Was this translation helpful? Give feedback.
All reactions