mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
The error message previously did not say which parallel route slot couldn't be validated. Now it poitns to the nearest segment below the validation boundary. The idea is you go look abive this and figure out if it is intentional that this segment isn't rendered in the current context. If so you can ignored the warning (it should ideally not even be presented as a normal error) but if it is unintentional you investigate why you aren't SSRing this slot or you mark the slot as intentionally blocking so it doesn't get validated.
15 lines
343 B
TypeScript
15 lines
343 B
TypeScript
// Drops both {children} and {sidebar}. Both slots have configured
|
|
// pages, so both boundaries will be missing — the error should list
|
|
// both files.
|
|
import { ReactNode } from 'react'
|
|
|
|
export default function Layout({
|
|
children,
|
|
sidebar,
|
|
}: {
|
|
children: ReactNode
|
|
sidebar: ReactNode
|
|
}) {
|
|
return <main>neither slot rendered</main>
|
|
}
|