Next.js Discord

Discord Forum

Using the pages router in nextjs 13

Unanswered
Chalcid wasp posted this in #help-forum
Open in Discord
Chalcid waspOP
I am trying to learn NextJS using as startup points applications that were built before the app router. Since I am interested in using ChakraUI that doesn't work well with server side components, I want to proceed in this way.

However, after placing a single index.tsx files in /pages and hitting localhost:3000, I get a 404. What am I missing?

5 Replies

Asian black bear
@Chalcid wasp did you restart the dev server?
Chalcid waspOP
No
Asian black bear
could be worth a try, it goes wonky when the file of a route it knows the file for already changes
Chalcid waspOP
Thanks. How do multiple routing system work together ? Priority is given to app routing ?
@Chalcid wasp Thanks. How do multiple routing system work together ? Priority is given to app routing ?
Asian black bear
I am not sure how conflicts are handled with routing, but they dont work together. It is like two completely separate react apps