# Error: The slot '@slot' is missing the required 'default.tsx' file. Ensure the slot has a default export.

- **ID:** `nextjs/parallel-route-slot-not-found`
- **Domain:** nextjs
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 95%

## 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.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| Next.js 14.0.0 | active | — | — |
| Next.js 14.1.0 | active | — | — |
| Next.js 14.2.0 | active | — | — |

## Workarounds

1. **Create a default.tsx file in the slot directory that exports a default component, e.g., 'export default function Default() { return null; }'** (95% success)
   ```
   Create a default.tsx file in the slot directory that exports a default component, e.g., 'export default function Default() { return null; }'
   ```
2. **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.** (85% success)
   ```
   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.
   ```
3. **If the slot is not needed, remove all references to it from layout.tsx and delete the slot folder.** (90% success)
   ```
   If the slot is not needed, remove all references to it from layout.tsx and delete the slot folder.
   ```

## Dead Ends

- **** — Layout.tsx is used for shared layouts, not as a fallback render for unmatched routes; the slot still needs default.tsx. (70% fail)
- **** — Removing the slot breaks the parallel route structure; use default.tsx to keep the slot functional. (90% fail)
- **** — Page.tsx only works for the root segment of the slot; default.tsx is specifically required for fallback rendering. (80% fail)
