UNPKG

next

Version:

The React Framework

9 lines (8 loc) 664 B
import { UsageError } from './usage-error'; export class MissingDefaultParallelRouteError extends UsageError { constructor(fullSegmentPath, slotName){ super(`Missing required default.js file for parallel route at ${fullSegmentPath}\n` + `The parallel route slot "${slotName}" is missing a default.js file. When using parallel routes, each slot must have a default.js file to serve as a fallback.\n\n` + `Create a default.js file at: ${fullSegmentPath}/default.js`, 'https://nextjs.org/docs/messages/slot-missing-default'); this.name = 'MissingDefaultParallelRouteError'; } } //# sourceMappingURL=missing-default-parallel-route-error.js.map