@@ -139,6 +139,7 @@ describe('Error overlay for hydration errors in App router', () => {
...
@@ -139,6 +139,7 @@ describe('Error overlay for hydration errors in App router', () => {
if(isTurbopack){
if(isTurbopack){
awaitexpect(browser).toDisplayCollapsedRedbox(`
awaitexpect(browser).toDisplayCollapsedRedbox(`
{
{
"code": "E394",
"componentStack": "...
"componentStack": "...
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
...
@@ -175,6 +176,7 @@ describe('Error overlay for hydration errors in App router', () => {
...
@@ -175,6 +176,7 @@ describe('Error overlay for hydration errors in App router', () => {
}else{
}else{
awaitexpect(browser).toDisplayCollapsedRedbox(`
awaitexpect(browser).toDisplayCollapsedRedbox(`
{
{
"code": "E394",
"componentStack": "...
"componentStack": "...
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
...
@@ -336,6 +338,7 @@ describe('Error overlay for hydration errors in App router', () => {
...
@@ -336,6 +338,7 @@ describe('Error overlay for hydration errors in App router', () => {
awaitexpect(browser).toDisplayCollapsedRedbox(`
awaitexpect(browser).toDisplayCollapsedRedbox(`
[
[
{
{
"code": "E394",
"componentStack": "...
"componentStack": "...
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
...
@@ -408,6 +411,7 @@ describe('Error overlay for hydration errors in App router', () => {
...
@@ -408,6 +411,7 @@ describe('Error overlay for hydration errors in App router', () => {
awaitexpect(browser).toDisplayCollapsedRedbox(`
awaitexpect(browser).toDisplayCollapsedRedbox(`
{
{
"code": "E394",
"componentStack": "...
"componentStack": "...
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
...
@@ -503,6 +507,7 @@ describe('Error overlay for hydration errors in App router', () => {
...
@@ -503,6 +507,7 @@ describe('Error overlay for hydration errors in App router', () => {
awaitexpect(browser).toDisplayCollapsedRedbox(`
awaitexpect(browser).toDisplayCollapsedRedbox(`
[
[
{
{
"code": "E394",
"componentStack": "...
"componentStack": "...
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
...
@@ -560,6 +565,7 @@ describe('Error overlay for hydration errors in App router', () => {
...
@@ -560,6 +565,7 @@ describe('Error overlay for hydration errors in App router', () => {
awaitexpect(browser).toDisplayCollapsedRedbox(`
awaitexpect(browser).toDisplayCollapsedRedbox(`
[
[
{
{
"code": "E394",
"componentStack": "...
"componentStack": "...
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
...
@@ -618,6 +624,7 @@ describe('Error overlay for hydration errors in App router', () => {
...
@@ -618,6 +624,7 @@ describe('Error overlay for hydration errors in App router', () => {
awaitexpect(browser).toDisplayCollapsedRedbox(`
awaitexpect(browser).toDisplayCollapsedRedbox(`
[
[
{
{
"code": "E394",
"componentStack": "...
"componentStack": "...
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
...
@@ -675,6 +682,7 @@ describe('Error overlay for hydration errors in App router', () => {
...
@@ -675,6 +682,7 @@ describe('Error overlay for hydration errors in App router', () => {
awaitexpect(browser).toDisplayCollapsedRedbox(`
awaitexpect(browser).toDisplayCollapsedRedbox(`
[
[
{
{
"code": "E394",
"componentStack": "...
"componentStack": "...
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
...
@@ -711,6 +719,7 @@ describe('Error overlay for hydration errors in App router', () => {
...
@@ -711,6 +719,7 @@ describe('Error overlay for hydration errors in App router', () => {
],
],
},
},
{
{
"code": "E394",
"description": "<p> cannot contain a nested <p>.
"description": "<p> cannot contain a nested <p>.
See this log for the ancestor stack trace.",
See this log for the ancestor stack trace.",
"environmentLabel": null,
"environmentLabel": null,
...
@@ -753,6 +762,7 @@ describe('Error overlay for hydration errors in App router', () => {
...
@@ -753,6 +762,7 @@ describe('Error overlay for hydration errors in App router', () => {
awaitexpect(browser).toDisplayCollapsedRedbox(`
awaitexpect(browser).toDisplayCollapsedRedbox(`
[
[
{
{
"code": "E394",
"description": "Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.",
"description": "Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.",
"environmentLabel": null,
"environmentLabel": null,
"label": "Console Error",
"label": "Console Error",
...
@@ -764,6 +774,7 @@ describe('Error overlay for hydration errors in App router', () => {
...
@@ -764,6 +774,7 @@ describe('Error overlay for hydration errors in App router', () => {
],
],
},
},
{
{
"code": "E394",
"componentStack": "...
"componentStack": "...
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
...
@@ -799,6 +810,7 @@ describe('Error overlay for hydration errors in App router', () => {
...
@@ -799,6 +810,7 @@ describe('Error overlay for hydration errors in App router', () => {
],
],
},
},
{
{
"code": "E394",
"description": "<html> cannot contain a nested <script>.
"description": "<html> cannot contain a nested <script>.
See this log for the ancestor stack trace.",
See this log for the ancestor stack trace.",
"environmentLabel": null,
"environmentLabel": null,
...
@@ -817,6 +829,7 @@ describe('Error overlay for hydration errors in App router', () => {
...
@@ -817,6 +829,7 @@ describe('Error overlay for hydration errors in App router', () => {
awaitexpect(browser).toDisplayCollapsedRedbox(`
awaitexpect(browser).toDisplayCollapsedRedbox(`
[
[
{
{
"code": "E394",
"description": "Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.",
"description": "Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.",
"environmentLabel": null,
"environmentLabel": null,
"label": "Console Error",
"label": "Console Error",
...
@@ -828,6 +841,7 @@ describe('Error overlay for hydration errors in App router', () => {
...
@@ -828,6 +841,7 @@ describe('Error overlay for hydration errors in App router', () => {
],
],
},
},
{
{
"code": "E394",
"componentStack": "...
"componentStack": "...
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
<Next.js Internal Component>
...
@@ -861,6 +875,7 @@ describe('Error overlay for hydration errors in App router', () => {
...
@@ -861,6 +875,7 @@ describe('Error overlay for hydration errors in App router', () => {
],
],
},
},
{
{
"code": "E394",
"description": "<html> cannot contain a nested <script>.
"description": "<html> cannot contain a nested <script>.
// TODO(veil): Where is the stackframe for app/page.js?
// TODO(veil): Where is the stackframe for app/page.js?
awaitexpect(browser).toDisplayRedbox(`
awaitexpect(browser).toDisplayRedbox(`
{
{
"code": "E828",
"description": "Route / with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering",
"description": "Route / with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering",
"description": "<Page> is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding \`'use client'\` to a module that was originally written for the server.",
"description": "<Page> is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding \`'use client'\` to a module that was originally written for the server.",
"description": "A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.",
"description": "A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.",
"description": "Additional keys were returned from \`getStaticProps\`. Properties intended for your component must be nested under the \`props\` key, e.g.:
"description": "Additional keys were returned from \`getStaticProps\`. Properties intended for your component must be nested under the \`props\` key, e.g.:
"description": ""InstanceInitialPropsPage.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.",
"description": ""InstanceInitialPropsPage.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.",
"description": "Route /[lang]/[locale]/use-cache used \`import('next/root-params').lang()\` inside \`"use cache"\` or \`unstable_cache\`. Support for this API inside cache scopes is planned for a future version of Next.js.",
"description": "Route /[lang]/[locale]/use-cache used \`import('next/root-params').lang()\` inside \`"use cache"\` or \`unstable_cache\`. Support for this API inside cache scopes is planned for a future version of Next.js.",
"description": "Route /[lang]/[locale]/unstable_cache used \`import('next/root-params').lang()\` inside \`"use cache"\` or \`unstable_cache\`. Support for this API inside cache scopes is planned for a future version of Next.js.",
"description": "Route /[lang]/[locale]/unstable_cache used \`import('next/root-params').lang()\` inside \`"use cache"\` or \`unstable_cache\`. Support for this API inside cache scopes is planned for a future version of Next.js.",
"description": "Route /cookies with \`dynamic = "error"\` couldn't be rendered statically because it used \`cookies()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering",
"description": "Route /cookies with \`dynamic = "error"\` couldn't be rendered statically because it used \`cookies()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering",
"description": "Route /connection with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering",
"description": "Route /connection with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering",
"description": "Route /headers with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering",
"description": "Route /headers with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering",
"description": "Route /search with \`dynamic = "error"\` couldn't be rendered statically because it used \`searchParams.then\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering",
"description": "Route /search with \`dynamic = "error"\` couldn't be rendered statically because it used \`searchParams.then\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering",
"description": "Route /cookies used \`cookies()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`cookies()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache",
"description": "Route /cookies used \`cookies()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`cookies()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache",
"description": "Route /connection used \`connection()\` inside a function cached with \`unstable_cache()\`. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache",
"description": "Route /connection used \`connection()\` inside a function cached with \`unstable_cache()\`. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache",
"description": "Route /headers used \`headers()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache",
"description": "Route /headers used \`headers()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache",
"description": "Dynamic href \`/object/[slug]\` found in <Link> while using the \`/app\` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href",
"description": "Dynamic href \`/object/[slug]\` found in <Link> while using the \`/app\` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href",
"description": "Dynamic href \`/object/[slug]\` found in <Link> while using the \`/app\` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href",
"description": "Dynamic href \`/object/[slug]\` found in <Link> while using the \`/app\` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href",
"description": "Route /search-params-used-generate-metadata used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache",
"description": "Route /search-params-used-generate-metadata used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache",
"description": "Route /search-params-used-generate-viewport used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache",
"description": "Route /search-params-used-generate-viewport used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache",
"description": "Using a Server Component as a direct child of \`<Link legacyBehavior>\` is not supported. If you need legacyBehavior, wrap your Server Component in a Client Component that renders the Link's \`<a>\` tag.",
"description": "Using a Server Component as a direct child of \`<Link legacyBehavior>\` is not supported. If you need legacyBehavior, wrap your Server Component in a Client Component that renders the Link's \`<a>\` tag.",
"description": "Using a Server Component as a direct child of \`<Link legacyBehavior>\` is not supported. If you need legacyBehavior, wrap your Server Component in a Client Component that renders the Link's \`<a>\` tag.",
"description": "Using a Server Component as a direct child of \`<Link legacyBehavior>\` is not supported. If you need legacyBehavior, wrap your Server Component in a Client Component that renders the Link's \`<a>\` tag.",
"description": "\`<Link legacyBehavior>\` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's \`<a>\` tag.",
"description": "\`<Link legacyBehavior>\` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's \`<a>\` tag.",
"description": "Using a Lazy Component as a direct child of \`<Link legacyBehavior>\` from a Server Component is not supported. If you need legacyBehavior, wrap your Lazy Component in a Client Component that renders the Link's \`<a>\` tag.",
"description": "Using a Lazy Component as a direct child of \`<Link legacyBehavior>\` from a Server Component is not supported. If you need legacyBehavior, wrap your Lazy Component in a Client Component that renders the Link's \`<a>\` tag.",
"description": "\`<Link legacyBehavior>\` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's \`<a>\` tag.",
"description": "\`<Link legacyBehavior>\` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's \`<a>\` tag.",
"description": "\`<Link legacyBehavior>\` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's \`<a>\` tag.",
"code": "E863",
"environmentLabel": null,
"description": "\`<Link legacyBehavior>\` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's \`<a>\` tag.",
"description": "No children were passed to <Link> with \`href\` of \`/about\` but one child is required https://nextjs.org/docs/messages/link-no-children",
"description": "No children were passed to <Link> with \`href\` of \`/about\` but one child is required https://nextjs.org/docs/messages/link-no-children",
"description": "Multiple children were passed to <Link> with \`href\` of \`/about\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children
"description": "Multiple children were passed to <Link> with \`href\` of \`/about\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children
Open your browser's console to view the Component stack trace.",
Open your browser's console to view the Component stack trace.",
"description": "\`<Link legacyBehavior>\` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's \`<a>\` tag.",
"description": "\`<Link legacyBehavior>\` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's \`<a>\` tag.",