"1051":"Turbopack trace server is not supported on this platform (%s/%s) because native bindings are not available. Only WebAssembly (WASM) bindings were loaded, and Turbopack requires native bindings.",
"1052":"Turbopack is not supported on this platform (%s/%s) because native bindings are not available. Only WebAssembly (WASM) bindings were loaded, and Turbopack requires native bindings. Use the --webpack flag instead.",
"1053":"Export encountered errors on %s %s:\\n\\t%s",
"1054":"`runInSequentialTasks` should not be called in edge runtime."
"1054":"`runInSequentialTasks` should not be called in edge runtime.",
"1055":"Route \"%s\" failed to render during instant validation and Next.js was unable to determine a reason.",
"1056":"Route \"%s\": Could not validate \\`unstable_instant\\` because the target segment was prevented from rendering for an unknown reason.",
"1057":"Route \"%s\": Could not validate \\`unstable_instant\\` because the target segment was prevented from rendering, likely due to one of the following errors.",
"1058":"InstantValidationBoundary should only be rendered in SSR",
"1059":"Route \"%s\": Could not validate \\`unstable_instant\\` because the target segment was prevented from rendering, likely due to the following error.",
dynamicValidation.hasAllowedDynamic=true// Holes outside the boundary contribute to allowing dynamic metadata
return
}else{
// TODO(instant-validation) TODO(NAR-787)
// If shared parents blocked us from validating, we should only log
// the errors from the innermost (segments), i.e. omit layouts whose
// slots managed to render (because clearly they didn't block validation)
constmessage=`Route "${workStore.route}": Could not validate \`unstable_instant\` because a Client Component in a parent segment prevented the page from rendering.`
`Route "${workStore.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering for an unknown reason.`
),
]
}elseif(thrownErrorsOutsideBoundary.length===1){
return[
newError(
`Route "${workStore.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to the following error.`
),
thrownErrorsOutsideBoundary[0]asError,
]
}else{
return[
newError(
`Route "${workStore.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to one of the following errors.`
),
...(thrownErrorsOutsideBoundaryasError[]),
]
}
}
// NOTE: We don't care about Suspense above body here,
// we're only concerned with the validation boundary
if(prelude!==PreludeState.Full){
// We didn't have any sync bailouts but there may be user code which
// blocked the root. We would have captured these during the prerender
// and can log them here and then terminate the build/validating render
"description": "Route "/suspense-in-root/static/invalid-client-data-blocks-validation": Could not validate \`unstable_instant\` because a Client Component in a parent segment prevented the page from rendering.",
// TODO(instant-validation) - this should be valid, but currently isn't
// await waitForNoErrorToast(browser)
awaitexpect(browser).toDisplayCollapsedRedbox(`
[
{
"description": "Route "/suspense-in-root/static/valid-client-api-in-parent/sync-io": Could not validate \`unstable_instant\` because a Client Component in a parent segment prevented the page from rendering.",
"description": "Route "/suspense-in-root/static/valid-client-api-in-parent/sync-io": Could not validate \`unstable_instant\` because a Client Component in a parent segment prevented the page from rendering.",
// TODO(instant-validation) - this should be valid, but currently isn't
// await waitForNoErrorToast(browser)
awaitexpect(browser).toDisplayCollapsedRedbox(`
{
"description": "Route "/suspense-in-root/static/valid-client-api-in-parent/dynamic-params/[id]": Could not validate \`unstable_instant\` because a Client Component in a parent segment prevented the page from rendering.",
// TODO(instant-validation) - this should be valid, but currently isn't
// await waitForNoErrorToast(browser)
awaitexpect(browser).toDisplayCollapsedRedbox(`
{
"description": "Route "/suspense-in-root/static/valid-client-api-in-parent/search-params": Could not validate \`unstable_instant\` because a Client Component in a parent segment prevented the page from rendering.",
// We expect a collapsed redbox. We need to open it to assert on the messages.
awaitopenRedbox(browser)
leterrors=awaitcreateRedboxSnapshot(browser,next)
if(!isClientNav){
// In SSR, we expect a "Switched to client rendering ..." error because we deliberately throw in a client component.
// However, the timing of when it appears is inconsistent -- sometimes it's before validation errors,
// and sometimes it's after.
// To avoid flakiness, we filter it out (but assert that it appears in the redbox)
errors=removeExpectedError(errors,(err)=>{
return(
err.label==='Recoverable Error'&&
err.description.startsWith(
'Switched to client rendering because the server rendering errored:\n\nNo SSR please'
)
)
})
}
expect(errors).toMatchInlineSnapshot(`
[
{
"description": "Route "/suspense-in-root/static/invalid-client-error-in-parent-blocks-children": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to the following error.",
// In a client navigation, the redbox will be collapsed.
awaitopenRedbox(browser)
}else{
// In SSR, the redbox will be open due to the missing tags error.
awaitwaitForRedbox(browser)
}
leterrors=awaitcreateRedboxSnapshot(browser,next)
if(!isClientNav){
// In SSR, we expect a "Switched to client rendering ..." error because we deliberately throw in a client component.
// However, the timing of when it appears is inconsistent -- sometimes it's before validation errors,
// and sometimes it's after.
// To avoid flakiness, we filter it out (but assert that it appears in the redbox)
errors=removeExpectedError(errors,(err)=>{
return(
err.label==='Runtime Error'&&
err.description.startsWith(
'Missing <html> and <body> tags in the root layout.'
)
)
})
}
expect(errors).toMatchInlineSnapshot(`
[
{
"description": "Route "/suspense-in-root/static/invalid-client-error-in-parent-sibling": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to the following error.",