Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix experimental undici warning #41077

Merged
merged 2 commits into from
Oct 1, 2022
Merged

Fix experimental undici warning #41077

merged 2 commits into from
Oct 1, 2022

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented Sep 30, 2022

Fixes: https://vercel.slack.com/archives/C03KAR5DCKC/p1664581332858249

Bug

  • Related issues linked using fixes #number
  • Integration tests added
  • Errors have a helpful link attached, see contributing.md

@ijjk ijjk added created-by: Next.js team PRs by the Next.js team. type: next labels Sep 30, 2022
@ijjk ijjk marked this pull request as ready for review September 30, 2022 23:55
@ijjk
Copy link
Member Author

ijjk commented Oct 1, 2022

Failing test suites

Commit: 0d3aa86

pnpm testheadless test/e2e/app-dir/app-edge.test.ts

  • app-dir edge SSR > should handle edge only routes
Expand output

● app-dir edge SSR › should handle edge only routes

expect(received).toContain(expected) // indexOf

Expected substring: "<p>app-edge-ssr</p>"
Received string:    "<!DOCTYPE html><html><head><style data-next-hide-fouc=\"true\">body{display:none}</style><noscript data-next-hide-fouc=\"true\"><style>body{display:block}</style></noscript><meta charSet=\"utf-8\"/><meta name=\"viewport\" content=\"width=device-width\"/><meta name=\"next-head-count\" content=\"2\"/><noscript data-n-css=\"\"></noscript><script defer=\"\" nomodule=\"\" src=\"/_next/static/chunks/polyfills.js?ts=1664582438239\"></script><script src=\"/_next/static/chunks/webpack.js?ts=1664582438239\" defer=\"\"></script><script src=\"/_next/static/chunks/main.js?ts=1664582438239\" defer=\"\"></script><script src=\"/_next/static/chunks/pages/_app.js?ts=1664582438239\" defer=\"\"></script><script src=\"/_next/static/chunks/pages/_error.js?ts=1664582438239\" defer=\"\"></script><script src=\"/_next/static/development/_buildManifest.js?ts=1664582438239\" defer=\"\"></script><script src=\"/_next/static/development/_ssgManifest.js?ts=1664582438239\" defer=\"\"></script><noscript id=\"__next_css__DO_NOT_USE__\"></noscript></head><body><div id=\"__next\"></div><script src=\"/_next/static/chunks/react-refresh.js?ts=1664582438239\"></script><script id=\"__NEXT_DATA__\" type=\"application/json\">{\"props\":{\"pageProps\":{\"statusCode\":500}},\"page\":\"/_error\",\"query\":{\"__NEXT_PAGE\":\"/app-edge\"},\"buildId\":\"development\",\"isFallback\":false,\"err\":{\"name\":\"TypeError\",\"source\":\"edge-server\",\"message\":\"Cannot read properties of undefined (reading 'Dispatcher')\",\"stack\":\"TypeError: Cannot read properties of undefined (reading 'Dispatcher')\\n    at \\u003cunknown\\u003e (webpack-internal:///8528:2199)\\n    at eval (webpack-internal:///8528:2199:65)\\n    at eval (webpack-internal:///8528:7250:7)\\n    at Object.8528 (evalmachine.\\u003canonymous\\u003e:1296:1)\\n    at __webpack_require__ (evalmachine.\\u003canonymous\\u003e:37:33)\\n    at fn (evalmachine.\\u003canonymous\\u003e:281:21)\\n    at eval (webpack-internal:///4782:5:9)\\n    at Object.4782 (evalmachine.\\u003canonymous\\u003e:1307:1)\\n    at __webpack_require__ (evalmachine.\\u003canonymous\\u003e:37:33)\\n    at fn (evalmachine.\\u003canonymous\\u003e:281:21)\\n    at eval (webpack-internal:///1701:99:81)\"},\"gip\":true,\"scriptLoader\":[]}</script></body></html>"

  33 |   it('should handle edge only routes', async () => {
  34 |     const appHtml = await renderViaHTTP(next.url, '/app-edge')
> 35 |     expect(appHtml).toContain('<p>app-edge-ssr</p>')
     |                     ^
  36 |
  37 |     const pageHtml = await renderViaHTTP(next.url, '/pages-edge')
  38 |     expect(pageHtml).toContain('<p>pages-edge-ssr</p>')

  at Object.<anonymous> (e2e/app-dir/app-edge.test.ts:35:21)

Read more about building and testing Next.js in contributing.md.

pnpm testheadless test/e2e/switchable-runtime/index.test.ts

  • Switchable runtime > Switchable runtime (dev) > should sort edge SSR routes correctly
  • Switchable runtime > Switchable runtime (dev) > should be able to navigate between edge SSR routes without any errors
  • Switchable runtime > Switchable runtime (dev) > should be possible to switch between runtimes in pages
  • Switchable runtime > Switchable runtime (dev) > should not crash the dev server when invalid runtime is configured
Expand output

● Switchable runtime › Switchable runtime (dev) › should sort edge SSR routes correctly

expect(received).toContain(expected) // indexOf

Expected substring: "to /edge/[id]"
Received string:    "<!DOCTYPE html><html><head><style data-next-hide-fouc=\"true\">body{display:none}</style><noscript data-next-hide-fouc=\"true\"><style>body{display:block}</style></noscript><meta charSet=\"utf-8\"/><meta name=\"viewport\" content=\"width=device-width\"/><meta name=\"next-head-count\" content=\"2\"/><noscript data-n-css=\"\"></noscript><script defer=\"\" nomodule=\"\" src=\"/_next/static/chunks/polyfills.js?ts=1664582947055\"></script><script src=\"/_next/static/chunks/webpack.js?ts=1664582947055\" defer=\"\"></script><script src=\"/_next/static/chunks/main.js?ts=1664582947055\" defer=\"\"></script><script src=\"/_next/static/chunks/pages/_app.js?ts=1664582947055\" defer=\"\"></script><script src=\"/_next/static/chunks/pages/_error.js?ts=1664582947055\" defer=\"\"></script><script src=\"/_next/static/development/_buildManifest.js?ts=1664582947055\" defer=\"\"></script><script src=\"/_next/static/development/_ssgManifest.js?ts=1664582947055\" defer=\"\"></script><noscript id=\"__next_css__DO_NOT_USE__\"></noscript></head><body><div id=\"__next\"></div><script src=\"/_next/static/chunks/react-refresh.js?ts=1664582947055\"></script><script id=\"__NEXT_DATA__\" type=\"application/json\">{\"props\":{\"pageProps\":{\"statusCode\":500}},\"page\":\"/_error\",\"query\":{\"__NEXT_PAGE\":\"/edge/foo\"},\"buildId\":\"development\",\"isFallback\":false,\"err\":{\"name\":\"TypeError\",\"source\":\"edge-server\",\"message\":\"Cannot read properties of undefined (reading 'Dispatcher')\",\"stack\":\"TypeError: Cannot read properties of undefined (reading 'Dispatcher')\\n    at \\u003cunknown\\u003e (webpack-internal:///6960:2440)\\n    at eval (webpack-internal:///6960:2440:57)\\n    at eval (webpack-internal:///6960:8607:5)\\n    at Object.6960 (evalmachine.\\u003canonymous\\u003e:1698:1)\\n    at __webpack_require__ (evalmachine.\\u003canonymous\\u003e:37:33)\\n    at fn (evalmachine.\\u003canonymous\\u003e:281:21)\\n    at eval (webpack-internal:///5309:6:7)\\n    at Object.5309 (evalmachine.\\u003canonymous\\u003e:1709:1)\\n    at __webpack_require__ (evalmachine.\\u003canonymous\\u003e:37:33)\\n    at fn (evalmachine.\\u003canonymous\\u003e:281:21)\\n    at eval (webpack-internal:///7779:63:82)\"},\"gip\":true,\"scriptLoader\":[]}</script></body></html>"

  82 |
  83 |         // /edge/foo should be caught before /edge/[id]
> 84 |         expect(html).toContain(`to /edge/[id]`)
     |                      ^
  85 |       })
  86 |
  87 |       it('should be able to navigate between edge SSR routes without any errors', async () => {

  at Object.<anonymous> (e2e/switchable-runtime/index.test.ts:84:22)

● Switchable runtime › Switchable runtime (dev) › should be able to navigate between edge SSR routes without any errors

expect(received).toContain(expected) // indexOf

Expected substring: "to /edge/[id]"
Received string:    "<!DOCTYPE html><html><head><style data-next-hide-fouc=\"true\">body{display:none}</style><noscript data-next-hide-fouc=\"true\"><style>body{display:block}</style></noscript><meta charSet=\"utf-8\"/><meta name=\"viewport\" content=\"width=device-width\"/><meta name=\"next-head-count\" content=\"2\"/><noscript data-n-css=\"\"></noscript><script defer=\"\" nomodule=\"\" src=\"/_next/static/chunks/polyfills.js?ts=1664582947299\"></script><script src=\"/_next/static/chunks/webpack.js?ts=1664582947299\" defer=\"\"></script><script src=\"/_next/static/chunks/main.js?ts=1664582947299\" defer=\"\"></script><script src=\"/_next/static/chunks/pages/_app.js?ts=1664582947299\" defer=\"\"></script><script src=\"/_next/static/chunks/pages/_error.js?ts=1664582947299\" defer=\"\"></script><script src=\"/_next/static/development/_buildManifest.js?ts=1664582947299\" defer=\"\"></script><script src=\"/_next/static/development/_ssgManifest.js?ts=1664582947299\" defer=\"\"></script><noscript id=\"__next_css__DO_NOT_USE__\"></noscript></head><body><div id=\"__next\"></div><script src=\"/_next/static/chunks/react-refresh.js?ts=1664582947299\"></script><script id=\"__NEXT_DATA__\" type=\"application/json\">{\"props\":{\"pageProps\":{\"statusCode\":500}},\"page\":\"/_error\",\"query\":{\"__NEXT_PAGE\":\"/edge/foo\"},\"buildId\":\"development\",\"isFallback\":false,\"err\":{\"name\":\"TypeError\",\"source\":\"edge-server\",\"message\":\"Cannot read properties of undefined (reading 'Dispatcher')\",\"stack\":\"TypeError: Cannot read properties of undefined (reading 'Dispatcher')\\n    at \\u003cunknown\\u003e (webpack-internal:///6960:2440)\\n    at eval (webpack-internal:///6960:2440:57)\\n    at eval (webpack-internal:///6960:8607:5)\\n    at Object.6960 (evalmachine.\\u003canonymous\\u003e:1698:1)\\n    at __webpack_require__ (evalmachine.\\u003canonymous\\u003e:37:33)\\n    at fn (evalmachine.\\u003canonymous\\u003e:281:21)\\n    at eval (webpack-internal:///5309:6:7)\\n    at Object.5309 (evalmachine.\\u003canonymous\\u003e:1709:1)\\n    at __webpack_require__ (evalmachine.\\u003canonymous\\u003e:37:33)\\n    at fn (evalmachine.\\u003canonymous\\u003e:281:21)\\n    at eval (webpack-internal:///7779:63:82)\"},\"gip\":true,\"scriptLoader\":[]}</script></body></html>"

  90 |
  91 |         // /edge/foo should be caught before /edge/[id]
> 92 |         expect(html).toContain(`to /edge/[id]`)
     |                      ^
  93 |
  94 |         const browser = await webdriver(context.appPort, '/edge/foo')
  95 |

  at Object.<anonymous> (e2e/switchable-runtime/index.test.ts:92:22)

● Switchable runtime › Switchable runtime (dev) › should be possible to switch between runtimes in pages

TIMED OUT: /Hello from edge page/

<!DOCTYPE html><html><head><style data-next-hide-fouc="true">body{display:none}</style><noscript data-next-hide-fouc="true"><style>body{display:block}</style></noscript><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills.js?ts=1664582983900"></script><script src="/_next/static/chunks/webpack.js?ts=1664582983900" defer=""></script><script src="/_next/static/chunks/main.js?ts=1664582983900" defer=""></script><script src="/_next/static/chunks/pages/_app.js?ts=1664582983900" defer=""></script><script src="/_next/static/chunks/pages/_error.js?ts=1664582983900" defer=""></script><script src="/_next/static/development/_buildManifest.js?ts=1664582983900" defer=""></script><script src="/_next/static/development/_ssgManifest.js?ts=1664582983900" defer=""></script><noscript id="__next_css__DO_NOT_USE__"></noscript></head><body><div id="__next"></div><script src="/_next/static/chunks/react-refresh.js?ts=1664582983900"></script><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{"__NEXT_PAGE":"/switch-in-dev"},"buildId":"development","isFallback":false,"err":{"name":"TypeError","source":"edge-server","message":"Cannot read properties of undefined (reading 'Dispatcher')","stack":"TypeError: Cannot read properties of undefined (reading 'Dispatcher')\n    at \u003cunknown\u003e (webpack-internal:///6960:2440)\n    at eval (webpack-internal:///6960:2440:57)\n    at eval (webpack-internal:///6960:8607:5)\n    at Object.6960 (evalmachine.\u003canonymous\u003e:1094:1)\n    at __webpack_require__ (evalmachine.\u003canonymous\u003e:37:33)\n    at fn (evalmachine.\u003canonymous\u003e:281:21)\n    at eval (webpack-internal:///5309:6:7)\n    at Object.5309 (evalmachine.\u003canonymous\u003e:1105:1)\n    at __webpack_require__ (evalmachine.\u003canonymous\u003e:37:33)\n    at fn (evalmachine.\u003canonymous\u003e:281:21)\n    at eval (webpack-internal:///7779:63:82)"},"gip":true,"scriptLoader":[]}</script></body></html>

  519 |
  520 |   if (hardError) {
> 521 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  522 |   }
  523 |   return false
  524 | }

  at check (lib/next-test-utils.js:521:11)
  at Object.<anonymous> (e2e/switchable-runtime/index.test.ts:275:9)

● Switchable runtime › Switchable runtime (dev) › should not crash the dev server when invalid runtime is configured

TIMED OUT: /Hello from page without errors/

<!DOCTYPE html><html><head><style data-next-hide-fouc="true">body{display:none}</style><noscript data-next-hide-fouc="true"><style>body{display:block}</style></noscript><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills.js?ts=1664583022938"></script><script src="/_next/static/chunks/webpack.js?ts=1664583022938" defer=""></script><script src="/_next/static/chunks/main.js?ts=1664583022938" defer=""></script><script src="/_next/static/chunks/pages/_app.js?ts=1664583022938" defer=""></script><script src="/_next/static/chunks/pages/_error.js?ts=1664583022938" defer=""></script><script src="/_next/static/development/_buildManifest.js?ts=1664583022938" defer=""></script><script src="/_next/static/development/_ssgManifest.js?ts=1664583022938" defer=""></script><noscript id="__next_css__DO_NOT_USE__"></noscript></head><body><div id="__next"></div><script src="/_next/static/chunks/react-refresh.js?ts=1664583022938"></script><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{"__NEXT_PAGE":"/invalid-runtime"},"buildId":"development","isFallback":false,"err":{"name":"TypeError","source":"edge-server","message":"Cannot read properties of undefined (reading 'Dispatcher')","stack":"TypeError: Cannot read properties of undefined (reading 'Dispatcher')\n    at \u003cunknown\u003e (webpack-internal:///6960:2440)\n    at eval (webpack-internal:///6960:2440:57)\n    at eval (webpack-internal:///6960:8607:5)\n    at Object.6960 (evalmachine.\u003canonymous\u003e:1094:1)\n    at __webpack_require__ (evalmachine.\u003canonymous\u003e:37:33)\n    at fn (evalmachine.\u003canonymous\u003e:281:21)\n    at eval (webpack-internal:///5309:6:7)\n    at Object.5309 (evalmachine.\u003canonymous\u003e:1105:1)\n    at __webpack_require__ (evalmachine.\u003canonymous\u003e:37:33)\n    at fn (evalmachine.\u003canonymous\u003e:281:21)\n    at eval (webpack-internal:///7779:63:82)"},"gip":true,"scriptLoader":[]}</script></body></html>

  519 |
  520 |   if (hardError) {
> 521 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  522 |   }
  523 |   return false
  524 | }

  at check (lib/next-test-utils.js:521:11)
  at Object.<anonymous> (e2e/switchable-runtime/index.test.ts:467:9)

Read more about building and testing Next.js in contributing.md.

pnpm testheadless test/e2e/app-dir/index.test.ts

  • app dir > should use application/octet-stream for flight
  • app dir > should use application/octet-stream for flight with edge runtime
  • app dir > should pass props from getServerSideProps in root layout
  • app dir > should serve from pages
  • app dir > should serve dynamic route from pages
  • app dir > should serve from public
  • app dir > should serve from app
  • app dir > should serve /index as separate page
  • app dir > should serve polyfills for browsers that do not support modules
  • app dir > should include layouts when no direct parent layout
  • app dir > should use new root layout when provided
  • app dir > should not create new root layout when nested (optional)
  • app dir > should include parent document when no direct parent layout
  • app dir > should not include parent when not in parent directory
  • app dir > should serve nested parent
  • app dir > should serve dynamic parameter
  • app dir > should include document html and body
  • app dir > should not serve when layout is provided but no folder index
  • app dir > should not rerender layout when navigating between routes in the same layout
  • app dir > should handle hash in initial url
  • app dir > > should hard push
  • app dir > > should hard replace
  • app dir > > should soft push
  • app dir > > should be soft for back navigation
  • app dir > > should be soft for forward navigation
  • app dir > > should allow linking from app page to pages page
  • app dir > Subresource Integrity > does not include nonce when not enabled
  • app dir > Subresource Integrity > includes a nonce value with inline scripts when Content-Security-Policy header is defined
  • app dir > Subresource Integrity > includes an integrity attribute on scripts
  • app dir > Subresource Integrity > throws when escape characters are included in nonce
  • app dir > client components > hooks > usePathname > should have the correct pathname
  • app dir > client components > hooks > useRouter > should allow access to the router
  • app dir > client components > hooks > useRouter > should have consistent query and params handling
  • app dir > client components > hooks > useSearchParams > should have the correct search params
  • app dir > css support > client layouts > should support css modules inside client layouts
  • app dir > css support > client layouts > should support global css inside client layouts
  • app dir > css support > client pages > should support css modules inside client pages
  • app dir > css support > client pages > should support global css inside client pages
  • app dir > css support > server layouts > should support global css inside server layouts
  • app dir > css support > server layouts > should support css modules inside server layouts
  • app dir > css support > server pages > should support global css inside server pages
  • app dir > css support > server pages > should support css modules inside server pages
  • app dir > css support > server pages > should not include unused css modules in the page in prod
  • app dir > error component > should trigger error component when an error happens during rendering
  • app dir > error component > should allow resetting error boundary
  • app dir > error component > should hydrate empty shell to handle server-side rendering errors
  • app dir > known bugs > should not share flight data between requests
  • app dir > not-found > should trigger not-found client-side
  • app dir > parallel routes > should match parallel routes
  • app dir > parallel routes > should match parallel routes in route groups
  • app dir > redirect > components > should redirect client-side
  • app dir > redirect > middleware redirects > should redirect from middleware
  • app dir > redirect > middleware redirects > should redirect from middleware with link navigation
  • app dir > redirect > next.config.js redirects > should redirect from next.config.js
  • app dir > redirect > next.config.js redirects > should redirect from next.config.js with link navigation
  • app dir > rewrites > should support rewrites on client-side navigation from pages to app with existing pages path
  • app dir > rewrites > should support rewrites on client-side navigation
  • app dir > server components > should not serve .server.js as a path
  • app dir > server components > should not serve .client.js as a path
  • app dir > server components > should serve shared component
  • app dir > server components > Loading > should render loading.js in initial html for slow page
  • app dir > server components > Loading > should render loading.js in browser for slow page
  • app dir > server components > Loading > should render loading.js in initial html for slow layout
  • app dir > server components > Loading > should render loading.js in browser for slow layout
  • app dir > server components > Loading > should render loading.js in initial html for slow layout and page
  • app dir > server components > Loading > should render loading.js in browser for slow layout and page
  • app dir > server components > catch-all routes > should handle optional segments
  • app dir > server components > catch-all routes > should handle optional segments root
  • app dir > server components > catch-all routes > should handle required segments
  • app dir > server components > catch-all routes > should handle required segments root as not found
  • app dir > server components > dynamic routes > should only pass params that apply to the layout
  • app dir > server components > hooks > cookies function > should retrieve cookies in a server component
  • app dir > server components > hooks > cookies function > should access cookies on navigation
  • app dir > server components > hooks > headers function > should have access to incoming headers in a server component
  • app dir > server components > hooks > headers function > should access headers on navigation
  • app dir > server components > hooks > previewData function > should return no preview data when there is none
  • app dir > server components > hooks > previewData function > should return preview data when there is some
  • app dir > server components > middleware > should strip internal query parameters from requests to middleware for rewrite
  • app dir > server components > middleware > should strip internal query parameters from requests to middleware for redirect
  • app dir > server components > should include client component layout with server component route > should include it server-side
  • app dir > server components > should include client component layout with server component route > should include it client-side
  • app dir > server components > should serve client component > should serve server-side
  • app dir > server components > should serve client component > should serve client-side
  • app dir > template component > should render the template that holds state in a client component and reset on navigation
Expand output

● app dir › should use application/octet-stream for flight

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should use application/octet-stream for flight with edge runtime

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should pass props from getServerSideProps in root layout

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should serve from pages

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should serve dynamic route from pages

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should serve from public

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should serve from app

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should serve /index as separate page

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should serve polyfills for browsers that do not support modules

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should handle css imports in next/dynamic correctly

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should include layouts when no direct parent layout

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should not include parent when not in parent directory with route in directory

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should use new root layout when provided

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should not create new root layout when nested (optional)

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should include parent document when no direct parent layout

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should not include parent when not in parent directory

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should serve nested parent

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should serve dynamic parameter

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should include document html and body

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should not serve when layout is provided but no folder index

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should match partial parameters

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › rewrites › should support rewrites on initial load

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › rewrites › should support rewrites on client-side navigation from pages to app with existing pages path

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › rewrites › should support rewrites on client-side navigation

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should not rerender layout when navigating between routes in the same layout

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › should handle hash in initial url

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › parallel routes › should match parallel routes

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › parallel routes › should match parallel routes in route groups

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › › should hard push

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › › should hard replace

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › › should soft push

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › › should soft replace

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › › should be soft for back navigation

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › › should be soft for forward navigation

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › › should allow linking from app page to pages page

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › should not serve .server.js as a path

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › should not serve .client.js as a path

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › should serve shared component

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › dynamic routes › should only pass params that apply to the layout

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › catch-all routes › should handle optional segments

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › catch-all routes › should handle optional segments root

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › catch-all routes › should handle required segments

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › catch-all routes › should handle required segments root as not found

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › should serve client component › should serve server-side

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › should serve client component › should serve client-side

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › should include client component layout with server component route › should include it server-side

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › should include client component layout with server component route › should include it client-side

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › Loading › should render loading.js in initial html for slow page

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › Loading › should render loading.js in browser for slow page

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › Loading › should render loading.js in initial html for slow layout

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › Loading › should render loading.js in browser for slow layout

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › Loading › should render loading.js in initial html for slow layout and page

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › Loading › should render loading.js in browser for slow layout and page

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › middleware › should strip internal query parameters from requests to middleware for rewrite

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › middleware › should strip internal query parameters from requests to middleware for redirect

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › next/router › should always return null when accessed from /app

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › hooks › cookies function › should retrieve cookies in a server component

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › hooks › cookies function › should access cookies on navigation

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › hooks › headers function › should have access to incoming headers in a server component

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › hooks › headers function › should access headers on navigation

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › hooks › previewData function › should return no preview data when there is none

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › hooks › previewData function › should return preview data when there is some

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › hooks › useRouter › should throw an error when imported

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › hooks › useParams › should throw an error when imported

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › hooks › useSearchParams › should throw an error when imported

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › hooks › usePathname › should throw an error when imported

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › hooks › useLayoutSegments › should throw an error when imported

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › server components › hooks › useSelectedLayoutSegment › should throw an error when imported

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › client components › hooks › cookies function › should throw an error when imported

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › client components › hooks › previewData function › should throw an error when imported

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › client components › hooks › headers function › should throw an error when imported

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › client components › hooks › usePathname › should have the correct pathname

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › client components › hooks › useSearchParams › should have the correct search params

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › client components › hooks › useRouter › should allow access to the router

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › client components › hooks › useRouter › should have consistent query and params handling

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › css support › server layouts › should support global css inside server layouts

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › css support › server layouts › should support css modules inside server layouts

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › css support › server pages › should support global css inside server pages

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › css support › server pages › should support css modules inside server pages

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › css support › server pages › should not include unused css modules in the page in prod

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › css support › client layouts › should support css modules inside client layouts

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › css support › client layouts › should support global css inside client layouts

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › css support › client pages › should support css modules inside client pages

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › css support › client pages › should support global css inside client pages

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › Subresource Integrity › does not include nonce when not enabled

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › Subresource Integrity › includes a nonce value with inline scripts when Content-Security-Policy header is defined

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › Subresource Integrity › includes an integrity attribute on scripts

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › Subresource Integrity › throws when escape characters are included in nonce

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › template component › should render the template that holds state in a client component and reset on navigation

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › template component › should render the template that is a server component and rerender on navigation

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › error component › should trigger error component when an error happens during rendering

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › error component › should allow resetting error boundary

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › error component › should hydrate empty shell to handle server-side rendering errors

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › known bugs › should not share flight data between requests

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › not-found › should trigger not-found in a server component

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › not-found › should trigger not-found in a client component

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › not-found › should trigger not-found client-side

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › redirect › components › should redirect in a server component

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › redirect › components › should redirect in a client component

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › redirect › components › should redirect client-side

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › redirect › next.config.js redirects › should redirect from next.config.js

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › redirect › next.config.js redirects › should redirect from next.config.js with link navigation

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › redirect › middleware redirects › should redirect from middleware

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

● app dir › redirect › middleware redirects › should redirect from middleware with link navigation

next build failed with code/signal 1

  75 |         if (code || signal)
  76 |           reject(
> 77 |             new Error(`next build failed with code/signal ${code || signal}`)
     |             ^
  78 |           )
  79 |         else resolve()
  80 |       })

  at ChildProcess.<anonymous> (lib/next-modes/next-start.ts:77:13)

Read more about building and testing Next.js in contributing.md.

@ijjk
Copy link
Member Author

ijjk commented Oct 1, 2022

Merging as failing tests are from canary and will be investigated separate

@ijjk ijjk merged commit cfd58ae into vercel:canary Oct 1, 2022
@ijjk ijjk deleted the fix/undici-warning branch October 1, 2022 00:20
BowlingX pushed a commit to BowlingX/next.js that referenced this pull request Oct 5, 2022
Fixes: https://vercel.slack.com/archives/C03KAR5DCKC/p1664581332858249

## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`
Kikobeats pushed a commit to Kikobeats/next.js that referenced this pull request Oct 24, 2022
Fixes: https://vercel.slack.com/archives/C03KAR5DCKC/p1664581332858249

## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants