Next.js Discord

Discord Forum

404 page not found error

Answered
Spotted Rail posted this in #help-forum
Open in Discord
Spotted RailOP
Even though route is defined or it's what I think atleast.
Answered by Ray
the path is /app/dashboard/invocies/[id]/edit/page.tsx
View full answer

12 Replies

Spotted RailOP
my folder structure
When i navigate here I get the 404 error
http://localhost:3000/dashboard/invoice/uuid/edit
@Spotted Rail Even though route is defined or it's what I think atleast.
route should be defined inside the app folder
Spotted RailOP
you create it inside the ui folder so the url should be /ui/invoices/uuid/edit
@Ray you create it inside the ui folder so the url should be /ui/invoices/uuid/edit
Spotted RailOP
yes I got your point but it is how they have done in the above guide
the path is /app/dashboard/invocies/[id]/edit/page.tsx
Answer
Spotted RailOP
oh i see
thanks @Ray .. the issue has been resolved now 😃
how do I mark it as answered?
@Spotted Rail how do I mark it as answered?
right click the answer > application > mark solution