Turbopack Error: Invalid segment Static("create"), catch all segment must be the last segment modifying the path (segments: [Static("api"), Static("auth"), CatchAll("nextauth")]) #88432
AliAttyallahAli
started this conversation in
Turbopack Error Report
Replies: 1 comment 1 reply
|
Quick workaround (if you just need dev server running) If you want to confirm it’s purely a routing-structure issue, you can run without Turbopack:
…but you should still fix the folder layout, because the route is invalid. That error is coming from your route folder structure, not your code. |
1 reply
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.
FATAL: An unexpected Turbopack error occurred. A panic log has been written to /tmp/next-panic-d124b0a897f79297c3c4956844708962.log.
To help make Turbopack better, report this error by clicking here.
Error [TurbopackInternalError]: Invalid segment Static("create"), catch all segment must be the last segment modifying the path (segments: [Static("api"), Static("auth"), CatchAll("nextauth")])
Debug info:
at (TurbopackInternalError: Invalid segment Static("create"), catch all segment must be the last segment modifying the path (segments: [Static("api"), Static("auth"), CatchAll("nextauth")])) {
location: undefined
}
aliattyallah@aliattyallah:~/Documents/NATUREL/naturel-plus$
All reactions