{
  "id": "nextjs/parallel-route-slot-not-found",
  "signature": "Error: The slot '@slot' is missing the required 'default.tsx' file. Ensure the slot has a default export.",
  "signature_zh": "错误：插槽 '@slot' 缺少必需的 'default.tsx' 文件。请确保插槽有默认导出。",
  "regex": "Error: The slot '(@[^']+)' is missing the required 'default\\.tsx' file",
  "domain": "nextjs",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "A parallel route slot in the app directory must have a default.tsx file to render when no matching route is found; otherwise, Next.js throws this error to enforce fallback behavior.",
  "root_cause_type": "generic",
  "root_cause_zh": "app 目录中的并行路由插槽必须有一个 default.tsx 文件，以便在找不到匹配路由时渲染；否则 Next.js 会抛出此错误以强制回退行为。",
  "versions": [
    {
      "version": "Next.js 14.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Next.js 14.1.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Next.js 14.2.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Layout.tsx is used for shared layouts, not as a fallback render for unmatched routes; the slot still needs default.tsx.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Removing the slot breaks the parallel route structure; use default.tsx to keep the slot functional.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Page.tsx only works for the root segment of the slot; default.tsx is specifically required for fallback rendering.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Create a default.tsx file in the slot directory that exports a default component, e.g., 'export default function Default() { return null; }'",
      "success_rate": 0.95,
      "how": "Create a default.tsx file in the slot directory that exports a default component, e.g., 'export default function Default() { return null; }'",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a catch-all route like '[[...slug]]' inside the slot folder with a page.tsx that handles all unmatched paths, but still ensure default.tsx exists for the slot root.",
      "success_rate": 0.85,
      "how": "Use a catch-all route like '[[...slug]]' inside the slot folder with a page.tsx that handles all unmatched paths, but still ensure default.tsx exists for the slot root.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If the slot is not needed, remove all references to it from layout.tsx and delete the slot folder.",
      "success_rate": 0.9,
      "how": "If the slot is not needed, remove all references to it from layout.tsx and delete the slot folder.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Create a default.tsx file in the slot directory that exports a default component, e.g., 'export default function Default() { return null; }'",
    "Use a catch-all route like '[[...slug]]' inside the slot folder with a page.tsx that handles all unmatched paths, but still ensure default.tsx exists for the slot root.",
    "If the slot is not needed, remove all references to it from layout.tsx and delete the slot folder."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://nextjs.org/docs/app/building-your-application/routing/parallel-routes#defaultjs",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.95,
  "resolvable": "true",
  "first_seen": "2023-10-27",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}