Next.js Discord

Discord Forum

Error: Catch-all must be the last part of the URL.

Answered
Southern Martin posted this in #help-forum
Open in Discord
Southern MartinOP
Seeing this in my terminal when I run npm run dev. I am trying to add authentication to my app. I have no clue why this is shown.
Answered by Southern Martin
actually I had a file called api/auth/[...nextauth]/routes.ts
View full answer

5 Replies

Can you copy the exact error message and then your file structure?
Southern MartinOP
actually I had a file called api/auth/[...nextauth]/routes.ts
Answer
Southern MartinOP
turns out next 14 work differently so I just deleted it
and now I able to start localhost
GJ figuring it out 🙂