Next.js Discord

Discord Forum

NextJS 13 Routing Beginner Help

Unanswered
Ratonero Valenciano posted this in #help-forum
Open in Discord
Ratonero ValencianoOP
What am I doing wrong here? I am new to this

16 Replies

Ratonero ValencianoOP
It gives me 404 when it goes to /pokemon
Giant panda
Read the docs about routing again. There are conventions what names routable file MUST have.
Ratonero ValencianoOP
Send me the link
because I don't understand
You can just tell me where the issue is
Giant panda
As I've mentioned, head to the Routing section of the docs to understand thoroughly how routing works.
Ratonero ValencianoOP
I don't understand my folder is under app?
like in this example /dashboard folder is under app
Why is it not rendering my file under /pokemon
@Ratonero Valenciano Click to see attachment
Giant panda
Please read the text above that exact image.
Ratonero ValencianoOP
I have done that clearly and still cannot see where I have gone wrong because my structure does not go against the picture I have posted. If that going to be your attitude towards "helping me" then I will ask someone else that is less obnoxious
Giant panda
My point is that you expect being spoonfed the answers without putting any effort into it yourself. If it was something more difficult I'd be more open to sharing details but in this case it's mentioned exactly above that image.
Routes that should be publicly accessible need to have a page.tsx file
Ratonero ValencianoOP
Thank you