Next.js Discord

Discord Forum

Parallel route page is not rendering

Unanswered
`${ViNoS}` posted this in #help-forum
Open in Discord
here is the file structure:

when I navigate to http://localhost:3000/cart/payement
the root layout is applied however is also shows a 404 error and it keeps refreshing
in the compononet layout when i console.log the segment it show "__DEFAULT__"

8 Replies

Alligator mississippiensis
try adding @payement/default.tsx to handle cases where no the slot does not find a match
one thing that may be informative is that when i add a console.log on the component in @payement/payement/page.tsx it logs it on the server
Alligator mississippiensis
try making a file cart/payement/page.tsx
maybe this is intentional but it's spelled "payment"
oh god, i hope it's a bug in Next and not just misspelling :').
gonna try
I guess time to open an issue