Open chris-orgorg opened 1 week ago
just add default.js file to @breadcrumb slot
output:
/ layout /subfolder layout /subfolder/mypage page Default page
and if was http://localhost:3000/subfolder/other-route add default.js to subfolder
output:
/ layout /subfolder layout Default page /subfolder/@breadcrumb page
Link to the code that reproduces this issue
https://github.com/chris-orgorg/parallel-routes
To Reproduce
Current vs. Expected behavior
Current:
No default component was found for a parallel route rendered on this page. Falling back to nearest NotFound boundary. Learn more: https://nextjs.org/docs/app/building-your-application/routing/parallel-routes#defaultjs
Missing slots: @breadcrumb Error Component Stack
Expected: / layout / subfolder layout / mypage page / subfolder/@breadcrumb page
Provide environment information
Which area(s) are affected? (Select all that apply)
Parallel & Intercepting Routes
Which stage(s) are affected? (Select all that apply)
Vercel (Deployed)
Additional context
It seems that by having a route group (in this case (app)) at the same level as another subfolder, both using the same name for a parallel route (in this case @breadcrumb) causes the incorrect resolution for getting the parallel routes. Maybe the parallel routes are getting fetched by path (but route grouping doesn't show up in the path, so it's looking in the wrong place).
I would expect the parallel routes to resolve or search by actual folder structure.
Changing the parallel routes to different names will fix the issue.