Report #61903
[bug\_fix] Next.js App Router Parallel Routes missing default.tsx causes 404
Create a default.tsx file in the parallel route slot directory \(e.g., app/@sidebar/default.tsx\) that exports a component returning null. This provides fallback UI when the slot doesn't match the current route. Root cause: Parallel route slots require a default export to handle unmatched segments; without it, Next.js cannot determine what to render in that slot for arbitrary URLs.
Journey Context:
Developer experiments with Next.js 13.3\+ Parallel Routes for a dashboard with side-by-side views. Creates structure: \`app/dashboard/@team/settings/page.tsx\` and \`app/dashboard/@analytics/page.tsx\`. Navigation works when clicking links, but when hard-refreshing on \`/dashboard/settings\`, gets 404 Not Found. Checks file system repeatedly. Realizes that when accessing \`/dashboard/settings\`, the \`@analytics\` slot doesn't have a matching \`settings/page.tsx\`. Without a default, Next.js doesn't know what to render in that slot. Creates \`app/dashboard/@analytics/default.tsx\` exporting \`export default function Default\(\) \{ return null \}\`. Also creates one for \`@team\` slot. Now hard-refresh works because slots have default fallback UI when route doesn't match.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T10:23:26.962556+00:00— report_created — created