I’m new with Next js, and I’m adding a new page, I just create a folder pages inside of src/app, then I add file dashboard.tsx but when I try to go to http://localhost:3000/dashboard I have this issue:
404 | This page could not be found.
why??
>Solution :
The root file of a directory is index.tsx
Edit
As pointed out by another answer, you are using Next 13 and the app folder feature.
The page you are aiming to create should be app/dashboard/index.tsx
(not as previously mentioned pages/dashboard/index.tsx — which however would apply if you are pre-Next 13 or are opting out of the app folder)
