Next.js Discord

Discord Forum

parallel routing

Unanswered
Transvaal lion posted this in #help-forum
Open in Discord
Avatar
Transvaal lionOP
i just got started with next.js i was learing about paralle routing what i wanted to test was a nested route inside a slot.this is the structire not the project. i dont know but i doont seem to access parallel/nested i am getting 404 error can anyone help
Image

9 Replies

Avatar
Transvaal lionOP
can anyone help?
Avatar
try adding a default.tsx

export default function Default() {
return null
}
Avatar
Transvaal lionOP
yeah but the problem i i would love to access the nested route inside the @slot 1 but i am unable to
default will shows a fallback i want the actual component being rendered😅
Avatar
you need a fallback to render for unmatched slots,
with the default, you telling next to render
slot1/nested and slot2/page
Avatar
Transvaal lionOP
so in this case i would have a default in slot2 as slot 2 doesnot have the nesetd route
Avatar
you can have the default.jsx in every slot, or in paralell folder, it will find the closer one
Avatar
Transvaal lionOP
yeah i solved it but i amhaving trouble with modal can someone help me out
Avatar
can you mark it as solved?

and what problem u have with modal