Next.js Discord

Discord Forum

App route not found.

Answered
Polish Tatra Sheepdog posted this in #help-forum
Open in Discord
Polish Tatra SheepdogOP
i do not undestending routes on next (my english is bad a lot).
i created app, but route not found.
Answered by riský
but basicly you use /page.tsx in app dir and use the folder names for pathname
View full answer

16 Replies

Polish Tatra SheepdogOP
answers
@Polish Tatra Sheepdog do you still need help?
but basicly you use /page.tsx in app dir and use the folder names for pathname
Answer
Peterbald
Hi @Polish Tatra Sheepdog
You have to make the project structure like this.
src/app/product/route.tsx
And make the component in route.tsx
Peterbald
Oh sorry this is page route, not app route
np, just wanted to remove confusion 🙂
Peterbald
Can I send you DM @riský ?
for what? but most things, no
Peterbald
I want to know each other @riský
Polish Tatra SheepdogOP
Thank's guys. i resolve this problem.
its just that https://ptb.discord.com/channels/752553802359505017/1171777382202478622/1171780946530414666 is for marking as solved and not asking for help... so id think next time you use if if you solved (like say why) or wait for someone
but what solved it? using page.tsx instead?
ohh you marked it at same time...
Polish Tatra SheepdogOP
😆