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

Revert "[Turbopack] Production Chunking" #75097

Closed
wants to merge 1 commit into from

Conversation

sokra
Copy link
Member

@sokra sokra commented Jan 20, 2025

Reverts #75010

Closes PACK-3769

Copy link

linear bot commented Jan 20, 2025

Issue reopened: PACK-3767 [Turbopack] Production Chunking

@ijjk ijjk added created-by: Turbopack team PRs by the Turbopack team. Turbopack Related to Turbopack with Next.js. labels Jan 20, 2025
@ijjk
Copy link
Member

ijjk commented Jan 20, 2025

Failing test suites

Commit: 1dd04ba

pnpm test test/integration/app-dir-export/test/dev-custom-dist-dir.test.ts (turbopack)

  • app dir - with output export and custom distDir (next dev) > should render properly
Expand output

● app dir - with output export and custom distDir (next dev) › should render properly

expect(received).toBe(expected) // Object.is equality

Expected: 200
Received: 500

  31 |   it('should render properly', async () => {
  32 |     const res = await fetchViaHTTP(appPort, '/')
> 33 |     expect(res.status).toBe(200)
     |                        ^
  34 |     expect(await res.text()).toContain('Home')
  35 |   })
  36 | })

  at Object.toBe (integration/app-dir-export/test/dev-custom-dist-dir.test.ts:33:24)

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

pnpm test test/integration/app-dynamic-error/test/index.test.ts (turbopack)

  • app-dynamic-error > production mode > throws an error when prerendering a page with config dynamic error
Expand output

● app-dynamic-error › production mode › throws an error when prerendering a page with config dynamic error

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

Expected substring: "Error occurred prerendering page \"/dynamic-error\""
Received string:    " ⚠ Linting is disabled.
Error: Failed to load external module next/dist/compiled/next-server/app-page-turbo.runtime.prod.js: Error: Cannot find module 'next\\dist\\server\\app-render\\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/app-dynamic-error/.next/server/chunks/ssr/[root of the server]__d4031c._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/app-dynamic-error/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/app-dynamic-error/.next/server/app/dynamic-error/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at externalRequire (../../../test/integration/app-dynamic-error/.next/server/chunks/ssr/[turbopack]_runtime.js:368:15)
  at [externals]/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js [external] (next/dist/compiled/next-server/app-page-turbo.runtime.prod.js, cjs) (../../../test/integration/app-dynamic-error/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:910)
  at instantiateModule (../../../test/integration/app-dynamic-error/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/app-dynamic-error/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/app-dynamic-error/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/module.compiled.js [app-rsc] (ecmascript) (../../../test/integration/app-dynamic-error/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:1305)
  at instantiateModule (../../../test/integration/app-dynamic-error/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/app-dynamic-error/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/app-dynamic-error/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js [app-rsc] (ecmascript) (../../../test/integration/app-dynamic-error/.next/server/chunks/ssr/[root of the server]__d4031c._.js:2:21374)·
  > Build error occurred
  Error: Failed to collect page data for /dynamic-error
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  "
  at Object.toContain (integration/app-dynamic-error/test/index.test.ts:13:24)

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

pnpm test-dev-turbo test/development/app-dir/experimental-lightningcss/experimental-lightningcss.test.ts (turbopack)

  • experimental-lightningcss > should support css modules
Expand output

● experimental-lightningcss › should support css modules

expect(received).toBe(expected) // Object.is equality

Expected: "hello world"
Received: ""

  10 |     // Recommended for tests that check HTML. Cheerio is a HTML parser that has a jQuery like API.
  11 |     const $ = await next.render$('/')
> 12 |     expect($('p').text()).toBe('hello world')
     |                           ^
  13 |     // swc_css does not include `-module` in the class name, while lightningcss does.
  14 |     expect($('p').attr('class')).toBe(
  15 |       'search-keyword style-module__hlQ3RG__blue'

  at Object.toBe (development/app-dir/experimental-lightningcss/experimental-lightningcss.test.ts:12:27)

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

pnpm test test/integration/build-trace-extra-entries/test/index.test.js

  • build trace with extra entries > production mode > should build and trace correctly
Expand output

● build trace with extra entries › production mode › should build and trace correctly

expect(received).toBe(expected) // Object.is equality

Expected: 0
Received: 1

  18 |         })
  19 |         console.log(result)
> 20 |         expect(result.code).toBe(0)
     |                             ^
  21 |
  22 |         const appTrace = await fs.readJSON(
  23 |           join(appDir, '.next/server/pages/_app.js.nft.json')

  at Object.toBe (integration/build-trace-extra-entries/test/index.test.js:20:29)

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

pnpm test test/integration/next-dynamic-css-asset-prefix/test/index.test.js (turbopack)

  • next/dynamic with assetPrefix > development mode > should load a App Router page correctly
Expand output

● next/dynamic with assetPrefix › development mode › should load a App Router page correctly

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

Expected substring: "221, 221, 221"
Received string:    "rgba(0, 0, 0, 0)"

  43 |         .elementByCss('body div:nth-child(3)')
  44 |         .getComputedCss('background-color')
> 45 |     ).toContain('221, 221, 221')
     |       ^
  46 |
  47 |     expect(await browser.eval('document.documentElement.innerHTML')).toContain(
  48 |       'Where does it come from?'

  at Object.toContain (integration/next-dynamic-css-asset-prefix/test/index.test.js:45:7)

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

pnpm test-start-turbo test/e2e/app-dir/app-validation/validation.test.ts (turbopack)

  • app dir - validation > should error when passing invalid router state tree
Expand output

● app dir - validation › should error when passing invalid router state tree

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

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

pnpm test-dev-turbo test/development/acceptance-app/app-hmr-changes.test.ts (turbopack)

  • Error overlay - RSC build errors > Skipped in webpack > should handle successive HMR changes with errors correctly
Expand output

● Error overlay - RSC build errors › Skipped in webpack › should handle successive HMR changes with errors correctly

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

Expected substring: "A few years ago I tweeted"
Received string:    "<head><meta charset=\"utf-8\" data-next-head=\"\"><meta name=\"viewport\" content=\"width=device-width\" data-next-head=\"\"><noscript data-n-css=\"\"></noscript><script defer=\"\" nomodule=\"\" src=\"/_next/static/chunks/1559a_next_dist_build_polyfills_polyfill-nomodule.js\"></script><script src=\"/_next/static/chunks/1559a_next_dist_compiled_81306c._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/1559a_next_dist_shared_lib_774f0e._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/1559a_next_dist_client_1e917e._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/1559a_next_dist_c222c6._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/1559a_next_app_7f9cce.js\" defer=\"\"></script><script src=\"/_next/static/chunks/%5Bnext%5D_entry_page-loader_ts_948b2a._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/545c3_react-dom_1c85ba._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/node_modules__pnpm_f84813._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/%5Broot%20of%20the%20server%5D__f265a1._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/pages__app_5771e1._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/pages__app_53829f._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/1559a_next_dist_shared_lib_08fa8b._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/1559a_next_dist_06ade2._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/1559a_next_error_cecdbf.js\" defer=\"\"></script><script src=\"/_next/static/chunks/%5Bnext%5D_entry_page-loader_ts_76c40e._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/%5Broot%20of%20the%20server%5D__2e1cf5._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/pages__error_5771e1._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/pages__error_995978._.js\" defer=\"\"></script><script src=\"/_next/static/development/_ssgManifest.js\" defer=\"\"></script><script src=\"/_next/static/development/_buildManifest.js\" defer=\"\"></script><noscript id=\"__next_css__DO_NOT_USE__\"></noscript></head><body style=\"overflow: hidden;\"><div id=\"__next\"></div><script id=\"__NEXT_DATA__\" type=\"application/json\">{\"props\":{\"pageProps\":{\"statusCode\":500}},\"page\":\"/_error\",\"query\":{},\"buildId\":\"development\",\"isFallback\":false,\"err\":{\"name\":\"Error\",\"source\":\"server\",\"message\":\"Failed to load external module next/dist/compiled/next-server/app-page.runtime.dev.js: Error: Cannot find module 'next\\\\dist\\\\server\\\\app-render\\\\work-async-storage.external.js'\\nRequire stack:\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[root of the server]__3c00be._.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/app/(post)/2020/develop-preview-test/page.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/require.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/load-components.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/build/utils.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/build/swc/options.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/build/swc/index.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/build/analysis/parse-module.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/build/analysis/get-page-static-info.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/lib/router-server.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/lib/start-server.js\",\"stack\":\"Error: Failed to load external module next/dist/compiled/next-server/app-page.runtime.dev.js: Error: Cannot find module 'next\\\\dist\\\\server\\\\app-render\\\\work-async-storage.external.js'\\nRequire stack:\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[root of the server]__3c00be._.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/app/(post)/2020/develop-preview-test/page.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/require.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/load-components.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/build/utils.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/build/swc/options.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/build/swc/index.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/build/analysis/parse-module.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/build/analysis/get-page-static-info.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/lib/router-server.js\\n- /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/lib/start-server.js\\n    at externalRequire (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:368:15)\\n    at [externals]/next/dist/compiled/next-server/app-page.runtime.dev.js [external] (next/dist/compiled/next-server/app-page.runtime.dev.js, cjs) (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[root of the server]__3c00be._.js:7:13)\\n    at instantiateModule (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)\\n    at getOrInstantiateModuleFromParent (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)\\n    at commonJsRequire (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)\\n    at [project]/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/route-modules/app-page/module.compiled.js [app-rsc] (ecmascript) (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/1559a_next_dist_728f56._.js:50:30)\\n    at instantiateModule (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)\\n    at getOrInstantiateModuleFromParent (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)\\n    at commonJsRequire (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)\\n    at [project]/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-dev-runtime.js [app-rsc] (ecmascript) (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/_656e39._.js:47:18)\\n    at instantiateModule (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)\\n    at getOrInstantiateModuleFromParent (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)\\n    at esmImport (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:132:20)\\n    at [project]/app/layout.js [app-rsc] (ecmascript) (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/_656e39._.js:11:398)\\n    at instantiateModule (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)\\n    at getOrInstantiateModuleFromParent (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)\\n    at esmImport (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:132:20)\\n    at [project]/app/layout.js [app-rsc] (ecmascript, Next.js server component) (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/_656e39._.js:40:32)\\n    at instantiateModule (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)\\n    at getOrInstantiateModuleFromParent (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)\\n    at esmImport (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:132:20)\\n    at [project]/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/esm/build/templates/app-page.js?page=/(post)/2020/develop-preview-test/page { MODULE_0 =\\u003e \\\"[project]/app/layout.js [app-rsc] (ecmascript, Next.js server component)\\\", MODULE_1 =\\u003e \\\"[project]/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/client/components/not-found-error.js [app-rsc] (ecmascript, Next.js server component)\\\", MODULE_2 =\\u003e \\\"[project]/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/client/components/forbidden-error.js [app-rsc] (ecmascript, Next.js server component)\\\", MODULE_3 =\\u003e \\\"[project]/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/client/components/unauthorized-error.js [app-rsc] (ecmascript, Next.js server component)\\\", MODULE_4 =\\u003e \\\"[project]/app/(post)/2020/develop-preview-test/page.mdx.tsx [app-rsc] (ecmascript, Next.js server component)\\\" } [app-rsc] (ecmascript) \\u003cmodule evaluation\\u003e (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/node_modules__pnpm_249ef1._.js:5963:152)\\n    at instantiateModule (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)\\n    at getOrInstantiateModuleFromParent (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)\\n    at esmImport (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:132:20)\\n    at [project]/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/esm/build/templates/app-page.js?page=/(post)/2020/develop-preview-test/page { MODULE_0 =\\u003e \\\"[project]/app/layout.js [app-rsc] (ecmascript, Next.js server component)\\\", MODULE_1 =\\u003e \\\"[project]/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/client/components/not-found-error.js [app-rsc] (ecmascript, Next.js server component)\\\", MODULE_2 =\\u003e \\\"[project]/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/client/components/forbidden-error.js [app-rsc] (ecmascript, Next.js server component)\\\", MODULE_3 =\\u003e \\\"[project]/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/client/components/unauthorized-error.js [app-rsc] (ecmascript, Next.js server component)\\\", MODULE_4 =\\u003e \\\"[project]/app/(post)/2020/develop-preview-test/page.mdx.tsx [app-rsc] (ecmascript, Next.js server component)\\\" } [app-rsc] (ecmascript) (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/node_modules__pnpm_249ef1._.js:6066:1884)\\n    at instantiateModule (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)\\n    at instantiateRuntimeModule (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:653:12)\\n    at Object.getOrInstantiateRuntimeModule (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/chunks/ssr/[turbopack]_runtime.js:669:12)\\n    at Object.\\u003canonymous\\u003e (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/.next/server/app/(post)/2020/develop-preview-test/page.js:13:26)\\n    at Module._compile (node:internal/modules/cjs/loader:1241:14)\\n    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)\\n    at Module.load (node:internal/modules/cjs/loader:1091:32)\\n    at Module._load (node:internal/modules/cjs/loader:938:12)\\n    at Module.require (node:internal/modules/cjs/loader:1115:19)\\n    at mod.require (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/require-hook.js:65:28)\\n    at require (node:internal/modules/helpers:130:18)\\n    at requirePage (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/require.js:103:84)\\n    at loadComponentsImpl (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/load-components.js:129:57)\\n    at async DevServer.findPageComponentsImpl (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/next-server.js:798:36)\\n    at async DevServer.findPageComponents (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/dev/next-dev-server.js:625:16)\\n    at async DevServer.renderPageComponent (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/base-server.js:2287:24)\\n    at async DevServer.renderToResponseImpl (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/base-server.js:2338:32)\\n    at async DevServer.pipeImpl (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/base-server.js:954:25)\\n    at async NextNodeServer.handleCatchallRenderRequest (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/next-server.js:294:17)\\n    at async DevServer.handleRequestImpl (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/base-server.js:847:17)\\n    at async /tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/dev/next-dev-server.js:371:20\\n    at async Span.traceAsyncFn (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/trace/trace.js:156:20)\\n    at async DevServer.handleRequest (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/dev/next-dev-server.js:368:24)\\n    at async invokeRender (/tmp/next-install-5604e0f5057e8c1d7553fc0f3c8e1fae6a8412890ed6dc170a8f0101441a5979/node_modules/.pnpm/file+..+next-repo-76137df994113c70920aa22ebb5604f807abe1094437f6488a3001c1365ae7fd+packages+n_4xfjyescnkok4fetcr7pe4z2ry/node_modules/next/dist/server/lib/router-server.js:233:21)\"},\"gip\":true,\"scriptLoader\":[]}</script><div id=\"__next-build-indicator\" style=\"position: fixed; bottom: 10px; right: 20px; width: 0px; height: 0px; z-index: 99999;\"></div><next-route-announcer><p aria-live=\"assertive\" id=\"__next-route-announcer__\" role=\"alert\" style=\"border: 0px; clip: rect(0px, 0px, 0px, 0px); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; top: 0px; width: 1px; white-space: nowrap; overflow-wrap: normal;\"></p></next-route-announcer><nextjs-portal></nextjs-portal></body>"

  35 |         expect(
  36 |           await session.evaluate('document.documentElement.innerHTML')
> 37 |         ).toContain('A few years ago I tweeted')
     |           ^
  38 |
  39 |         const pagePath = 'app/(post)/2020/develop-preview-test/page.mdx'
  40 |         const originalPage = await next.readFile(pagePath)

  at Object.toContain (development/acceptance-app/app-hmr-changes.test.ts:37:11)

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

pnpm test test/integration/app-config-asset-prefix/test/index.test.js (turbopack)

  • App assetPrefix config > should render correctly with assetPrefix: "/"
Expand output

● App assetPrefix config › should render correctly with assetPrefix: "/"

Expected no Redbox but found one
header: 1 of 1 issue
Next.js (15.2.0-canary.16) (Turbopack)
Server Error

Error: Failed to load external module next/dist/compiled/next-server/app-page.runtime.dev.js: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page.runtime.dev.js
- /root/actions-runner/_work/next.js/next.js/test/integration/app-config-asset-prefix/.next/server/chunks/ssr/[root of the server]__445b70._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/app-config-asset-prefix/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/app-config-asset-prefix/.next/server/app/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/analysis/parse-module.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/analysis/get-page-static-info.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js

This error happened while generating the page. Any console logs will be displayed in the terminal window.
description: Error: Failed to load external module next/dist/compiled/next-server/app-page.runtime.dev.js: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page.runtime.dev.js
- /root/actions-runner/_work/next.js/next.js/test/integration/app-config-asset-prefix/.next/server/chunks/ssr/[root of the server]__445b70._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/app-config-asset-prefix/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/app-config-asset-prefix/.next/server/app/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/analysis/parse-module.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/analysis/get-page-static-info.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js
source: dist/server/route-modules/app-page/vendored/rsc/..\..\..\..\..\..\src\server\route-modules\app-page\vendored\rsc\react-jsx-dev-runtime.ts (1:18) @ [project]/packages/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-dev-runtime.js [app-rsc] (ecmascript)

> 1 | module.exports = require('../../module.compiled').vendored[
    |                  ^
  2 |   'react-rsc'
  3 | ].ReactJsxDevRuntime
  4 |

  26 |     try {
  27 |       await waitFor(2000)
> 28 |       await assertNoRedbox(browser)
     |       ^
  29 |       const title = await browser.elementById('title').text()
  30 |       expect(title).toBe('IndexPage')
  31 |     } finally {

  at Object.<anonymous> (integration/app-config-asset-prefix/test/index.test.js:28:7)

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

pnpm test-dev-turbo test/development/app-dir/dev-fetch-hmr/dev-fetch-hmr.test.ts (turbopack)

  • dev-fetch-hmr > should retain module level fetch patching
Expand output

● dev-fetch-hmr › should retain module level fetch patching

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

Expected substring: "monkey patching is fun"
Received string:    "<!DOCTYPE html><html><head><meta charSet=\"utf-8\" data-next-head=\"\"/><meta name=\"viewport\" content=\"width=device-width\" data-next-head=\"\"/><style data-next-hide-fouc=\"true\">body{display:none}</style><noscript data-next-hide-fouc=\"true\"><style>body{display:block}</style></noscript><noscript data-n-css=\"\"></noscript><script defer=\"\" noModule=\"\" src=\"/_next/static/chunks/d78b3_next_dist_build_polyfills_polyfill-nomodule.js\"></script><script src=\"/_next/static/chunks/d78b3_next_dist_compiled_10a362._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/d78b3_next_dist_shared_lib_f0a7b1._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/d78b3_next_dist_client_637c94._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/d78b3_next_dist_c7b0db._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/d78b3_next_app_36ad23.js\" defer=\"\"></script><script src=\"/_next/static/chunks/%5Bnext%5D_entry_page-loader_ts_af6c8f._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/545c3_react-dom_1c85ba._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/node_modules__pnpm_f84813._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/%5Broot%20of%20the%20server%5D__f265a1._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/pages__app_5771e1._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/pages__app_22bcd9._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/d78b3_next_dist_shared_lib_c04b4d._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/d78b3_next_dist_fb386e._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/d78b3_next_error_1c5281.js\" defer=\"\"></script><script src=\"/_next/static/chunks/%5Bnext%5D_entry_page-loader_ts_783b74._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/%5Broot%20of%20the%20server%5D__2e1cf5._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/pages__error_5771e1._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/pages__error_b4e547._.js\" defer=\"\"></script><script src=\"/_next/static/development/_ssgManifest.js\" defer=\"\"></script><script src=\"/_next/static/development/_buildManifest.js\" defer=\"\"></script><noscript id=\"__next_css__DO_NOT_USE__\"></noscript></head><body><div id=\"__next\"></div><script id=\"__NEXT_DATA__\" type=\"application/json\">{\"props\":{\"pageProps\":{\"statusCode\":500}},\"page\":\"/_error\",\"query\":{},\"buildId\":\"development\",\"isFallback\":false,\"err\":{\"name\":\"Error\",\"source\":\"server\",\"message\":\"Failed to load external module next/dist/compiled/next-server/app-page.runtime.dev.js: Error: Cannot find module 'next\\\\dist\\\\server\\\\app-render\\\\work-async-storage.external.js'\\nRequire stack:\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[root of the server]__3c00be._.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/app/page.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/require.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/load-components.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/build/utils.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/build/swc/options.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/build/swc/index.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/build/analysis/parse-module.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/build/analysis/get-page-static-info.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/lib/router-server.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/lib/start-server.js\",\"stack\":\"Error: Failed to load external module next/dist/compiled/next-server/app-page.runtime.dev.js: Error: Cannot find module 'next\\\\dist\\\\server\\\\app-render\\\\work-async-storage.external.js'\\nRequire stack:\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[root of the server]__3c00be._.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/app/page.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/require.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/load-components.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/build/utils.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/build/swc/options.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/build/swc/index.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/build/analysis/parse-module.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/build/analysis/get-page-static-info.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/lib/router-server.js\\n- /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/lib/start-server.js\\n    at externalRequire (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:368:15)\\n    at [externals]/next/dist/compiled/next-server/app-page.runtime.dev.js [external] (next/dist/compiled/next-server/app-page.runtime.dev.js, cjs) (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[root of the server]__3c00be._.js:7:13)\\n    at instantiateModule (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)\\n    at getOrInstantiateModuleFromParent (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)\\n    at commonJsRequire (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)\\n    at [project]/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/route-modules/app-page/module.compiled.js [app-rsc] (ecmascript) (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/d78b3_next_dist_082385._.js:50:30)\\n    at instantiateModule (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)\\n    at getOrInstantiateModuleFromParent (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)\\n    at commonJsRequire (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)\\n    at [project]/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-dev-runtime.js [app-rsc] (ecmascript) (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/_c56750._.js:55:18)\\n    at instantiateModule (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)\\n    at getOrInstantiateModuleFromParent (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)\\n    at esmImport (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:132:20)\\n    at [project]/app/layout.tsx [app-rsc] (ecmascript) (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/_c56750._.js:11:398)\\n    at instantiateModule (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)\\n    at getOrInstantiateModuleFromParent (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)\\n    at esmImport (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:132:20)\\n    at [project]/app/layout.tsx [app-rsc] (ecmascript, Next.js server component) (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/_c56750._.js:48:32)\\n    at instantiateModule (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)\\n    at getOrInstantiateModuleFromParent (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)\\n    at esmImport (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:132:20)\\n    at [project]/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/esm/build/templates/app-page.js?page=/page { MODULE_0 =\\u003e \\\"[project]/app/layout.tsx [app-rsc] (ecmascript, Next.js server component)\\\", MODULE_1 =\\u003e \\\"[project]/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/client/components/not-found-error.js [app-rsc] (ecmascript, Next.js server component)\\\", MODULE_2 =\\u003e \\\"[project]/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/client/components/forbidden-error.js [app-rsc] (ecmascript, Next.js server component)\\\", MODULE_3 =\\u003e \\\"[project]/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/client/components/unauthorized-error.js [app-rsc] (ecmascript, Next.js server component)\\\", MODULE_4 =\\u003e \\\"[project]/app/page.tsx [app-rsc] (ecmascript, Next.js server component)\\\" } [app-rsc] (ecmascript) \\u003cmodule evaluation\\u003e (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/d78b3_next_dist_esm_71241b._.js:115:153)\\n    at instantiateModule (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)\\n    at getOrInstantiateModuleFromParent (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)\\n    at esmImport (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:132:20)\\n    at [project]/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/esm/build/templates/app-page.js?page=/page { MODULE_0 =\\u003e \\\"[project]/app/layout.tsx [app-rsc] (ecmascript, Next.js server component)\\\", MODULE_1 =\\u003e \\\"[project]/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/client/components/not-found-error.js [app-rsc] (ecmascript, Next.js server component)\\\", MODULE_2 =\\u003e \\\"[project]/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/client/components/forbidden-error.js [app-rsc] (ecmascript, Next.js server component)\\\", MODULE_3 =\\u003e \\\"[project]/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/client/components/unauthorized-error.js [app-rsc] (ecmascript, Next.js server component)\\\", MODULE_4 =\\u003e \\\"[project]/app/page.tsx [app-rsc] (ecmascript, Next.js server component)\\\" } [app-rsc] (ecmascript) (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/d78b3_next_dist_esm_71241b._.js:218:1778)\\n    at instantiateModule (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)\\n    at instantiateRuntimeModule (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:653:12)\\n    at Object.getOrInstantiateRuntimeModule (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/chunks/ssr/[turbopack]_runtime.js:669:12)\\n    at Object.\\u003canonymous\\u003e (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/.next/server/app/page.js:12:26)\\n    at Module._compile (node:internal/modules/cjs/loader:1241:14)\\n    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)\\n    at Module.load (node:internal/modules/cjs/loader:1091:32)\\n    at Module._load (node:internal/modules/cjs/loader:938:12)\\n    at Module.require (node:internal/modules/cjs/loader:1115:19)\\n    at mod.require (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/require-hook.js:65:28)\\n    at require (node:internal/modules/helpers:130:18)\\n    at requirePage (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/require.js:103:84)\\n    at loadComponentsImpl (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/load-components.js:129:57)\\n    at async DevServer.findPageComponentsImpl (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/next-server.js:798:36)\\n    at async DevServer.findPageComponents (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/dev/next-dev-server.js:625:16)\\n    at async DevServer.renderPageComponent (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/base-server.js:2287:24)\\n    at async DevServer.renderToResponseImpl (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/base-server.js:2338:32)\\n    at async DevServer.pipeImpl (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/base-server.js:954:25)\\n    at async NextNodeServer.handleCatchallRenderRequest (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/next-server.js:294:17)\\n    at async DevServer.handleRequestImpl (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/base-server.js:847:17)\\n    at async /tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/dev/next-dev-server.js:371:20\\n    at async Span.traceAsyncFn (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/trace/trace.js:156:20)\\n    at async DevServer.handleRequest (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/dev/next-dev-server.js:368:24)\\n    at async invokeRender (/tmp/next-install-8f672b8e848319c0c1614cb6a80f84e60902e15cc97c6fbaa306022da130b57f/node_modules/.pnpm/file+..+next-repo-a301249008f87c423bd458210a5fa3d283a541dcef4e9b62f9ffbe6384b1a737+packages+n_lmpshaewd6dh3i5ctslolxtd7i/node_modules/next/dist/server/lib/router-server.js:233:21)\"},\"gip\":true,\"scriptLoader\":[]}</script></body></html>"

  11 |   it('should retain module level fetch patching', async () => {
  12 |     const html = await next.render('/')
> 13 |     expect(html).toContain('monkey patching is fun')
     |                  ^
  14 |
  15 |     const magicNumber = cheerio.load(html)('#magic-number').text()
  16 |

  at Object.toContain (development/app-dir/dev-fetch-hmr/dev-fetch-hmr.test.ts:13:18)

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

pnpm test-start-turbo test/e2e/app-dir/actions-allowed-origins/app-action-allowed-origins.test.ts (turbopack)

  • app-dir action allowed origins > should pass if localhost is set as a safe origin
Expand output

● app-dir action allowed origins › should pass if localhost is set as a safe origin

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

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

pnpm test-dev test/development/app-dir/hmr-asset-prefix-full-url/asset-prefix.test.ts

  • app-dir assetPrefix full URL > should not break HMR when asset prefix set to full URL
Expand output

● app-dir assetPrefix full URL › should not break HMR when asset prefix set to full URL

expect(received).toBe(expected) // Object.is equality

Expected: "before edit"
Received: ""

  20 |     const browser = await next.browser('/')
  21 |     const text = await browser.elementByCss('p').text()
> 22 |     expect(text).toBe('before edit')
     |                  ^
  23 |
  24 |     await next.patchFile('app/page.tsx', (content) => {
  25 |       return content.replace('before', 'after')

  at Object.toBe (development/app-dir/hmr-asset-prefix-full-url/asset-prefix.test.ts:22:18)

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

pnpm test-dev-turbo test/development/app-dir/owner-stack-invalid-element-type/invalid-element-type.test.ts (turbopack)

  • app-dir - invalid-element-type > should catch invalid element from a browser only component
  • app-dir - invalid-element-type > should catch invalid element from a rsc component
  • app-dir - invalid-element-type > should catch invalid element from on ssr client component
Expand output

● app-dir - invalid-element-type › should catch invalid element from a browser only component

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `app-dir - invalid-element-type should catch invalid element from a browser only component 1`

- Snapshot  - 1
+ Received  + 6

- ""
+ "at [externals]/next/dist/compiled/next-server/app-page.runtime.dev.js [external] (next/dist/compiled/next-server/app-page.runtime.dev.js, cjs) ()
+ at [project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-dev-runtime.js [app-rsc] (ecmascript) ()
+ at [project]/app/layout.tsx [app-rsc] (ecmascript, Next.js server component) ()
+ at [project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/esm/build/templates/app-page.js?page=/browser/page { MODULE_0 => "[project]/app/layout.tsx [app-rsc] (ecmascript, Next.js server component)", MODULE_1 => "[project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/client/components/not-found-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_2 => "[project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/client/components/forbidden-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_3 => "[project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/client/components/unauthorized-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_4 => "[project]/app/browser/page.js [app-rsc] (ecmascript, Next.js server component)" } [app-rsc] (ecmascript) <module evaluation> ()
+ at [project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/esm/build/templates/app-page.js?page=/browser/page { MODULE_0 => "[project]/app/layout.tsx [app-rsc] (ecmascript, Next.js server component)", MODULE_1 => "[project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/client/components/not-found-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_2 => "[project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/client/components/forbidden-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_3 => "[project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/client/components/unauthorized-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_4 => "[project]/app/browser/page.js [app-rsc] (ecmascript, Next.js server component)" } [app-rsc] (ecmascript) ()
+ at Object.<anonymous> ()"

  26 |       const stackFramesContent = await getStackFramesContent(browser)
  27 |       if (process.env.TURBOPACK) {
> 28 |         expect(stackFramesContent).toMatchInlineSnapshot(`""`)
     |                                    ^
  29 |         expect(source).toMatchInlineSnapshot(`
  30 |           "app/browser/browser-only.js (8:7) @ BrowserOnly
  31 |

  at Object.toMatchInlineSnapshot (development/app-dir/owner-stack-invalid-element-type/invalid-element-type.test.ts:28:36)

● app-dir - invalid-element-type › should catch invalid element from a browser only component

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `app-dir - invalid-element-type should catch invalid element from a browser only component 2`

- Snapshot  - 9
+ Received  + 5

- app/browser/browser-only.js (8:7) @ BrowserOnly
-
-    6 |   return (
-    7 |     <div>
- >  8 |       <Foo />
-      |       ^
-    9 |     </div>
+ app/layout.tsx (0:0) @ [project]/app/layout.tsx [app-rsc] (ecmascript)
+
+   1 | import { ReactNode } from 'react'
+   2 | export default function Root({ children }: { children: ReactNode }) {
-   10 |   )
-   11 | }
+   3 |   return (

  27 |       if (process.env.TURBOPACK) {
  28 |         expect(stackFramesContent).toMatchInlineSnapshot(`""`)
> 29 |         expect(source).toMatchInlineSnapshot(`
     |                        ^
  30 |           "app/browser/browser-only.js (8:7) @ BrowserOnly
  31 |
  32 |              6 |   return (

  at Object.toMatchInlineSnapshot (development/app-dir/owner-stack-invalid-element-type/invalid-element-type.test.ts:29:24)

● app-dir - invalid-element-type › should catch invalid element from a rsc component

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `app-dir - invalid-element-type should catch invalid element from a rsc component 1`

- Snapshot  - 1
+ Received  + 6

- ""
+ "at [externals]/next/dist/compiled/next-server/app-page.runtime.dev.js [external] (next/dist/compiled/next-server/app-page.runtime.dev.js, cjs) ()
+ at [project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-dev-runtime.js [app-rsc] (ecmascript) ()
+ at [project]/app/layout.tsx [app-rsc] (ecmascript, Next.js server component) ()
+ at [project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/esm/build/templates/app-page.js?page=/browser/page { MODULE_0 => "[project]/app/layout.tsx [app-rsc] (ecmascript, Next.js server component)", MODULE_1 => "[project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/client/components/not-found-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_2 => "[project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/client/components/forbidden-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_3 => "[project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/client/components/unauthorized-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_4 => "[project]/app/browser/page.js [app-rsc] (ecmascript, Next.js server component)" } [app-rsc] (ecmascript) <module evaluation> ()
+ at [project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/esm/build/templates/app-page.js?page=/browser/page { MODULE_0 => "[project]/app/layout.tsx [app-rsc] (ecmascript, Next.js server component)", MODULE_1 => "[project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/client/components/not-found-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_2 => "[project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/client/components/forbidden-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_3 => "[project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/client/components/unauthorized-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_4 => "[project]/app/browser/page.js [app-rsc] (ecmascript, Next.js server component)" } [app-rsc] (ecmascript) ()
+ at Object.<anonymous> ()"

  62 |
  63 |       if (process.env.TURBOPACK) {
> 64 |         expect(stackFramesContent).toMatchInlineSnapshot(`""`)
     |                                    ^
  65 |         expect(source).toMatchInlineSnapshot(`
  66 |           "app/rsc/page.js (5:11) @ Inner
  67 |

  at Object.toMatchInlineSnapshot (development/app-dir/owner-stack-invalid-element-type/invalid-element-type.test.ts:64:36)

● app-dir - invalid-element-type › should catch invalid element from a rsc component

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `app-dir - invalid-element-type should catch invalid element from a rsc component 2`

- Snapshot  - 8
+ Received  + 4

- app/rsc/page.js (5:11) @ Inner
+ app/layout.tsx (0:0) @ [project]/app/layout.tsx [app-rsc] (ecmascript)

-   3 | // Intermediate component for testing owner stack
+   1 | import { ReactNode } from 'react'
-   4 | function Inner() {
- > 5 |   return <Foo />
-     |           ^
+   2 | export default function Root({ children }: { children: ReactNode }) {
-   6 | }
-   7 |
-   8 | export default function Page() {
+   3 |   return (

  63 |       if (process.env.TURBOPACK) {
  64 |         expect(stackFramesContent).toMatchInlineSnapshot(`""`)
> 65 |         expect(source).toMatchInlineSnapshot(`
     |                        ^
  66 |           "app/rsc/page.js (5:11) @ Inner
  67 |
  68 |             3 | // Intermediate component for testing owner stack

  at Object.toMatchInlineSnapshot (development/app-dir/owner-stack-invalid-element-type/invalid-element-type.test.ts:65:24)

● app-dir - invalid-element-type › should catch invalid element from on ssr client component

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `app-dir - invalid-element-type should catch invalid element from on ssr client component 1`

- Snapshot  - 1
+ Received  + 6

- ""
+ "at [externals]/next/dist/compiled/next-server/app-page.runtime.dev.js [external] (next/dist/compiled/next-server/app-page.runtime.dev.js, cjs) ()
+ at [project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-dev-runtime.js [app-rsc] (ecmascript) ()
+ at [project]/app/layout.tsx [app-rsc] (ecmascript, Next.js server component) ()
+ at [project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/esm/build/templates/app-page.js?page=/browser/page { MODULE_0 => "[project]/app/layout.tsx [app-rsc] (ecmascript, Next.js server component)", MODULE_1 => "[project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/client/components/not-found-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_2 => "[project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/client/components/forbidden-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_3 => "[project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/client/components/unauthorized-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_4 => "[project]/app/browser/page.js [app-rsc] (ecmascript, Next.js server component)" } [app-rsc] (ecmascript) <module evaluation> ()
+ at [project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/esm/build/templates/app-page.js?page=/browser/page { MODULE_0 => "[project]/app/layout.tsx [app-rsc] (ecmascript, Next.js server component)", MODULE_1 => "[project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/client/components/not-found-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_2 => "[project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/client/components/forbidden-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_3 => "[project]/node_modules/.pnpm/next@file+..+next-repo-27de6895e7e24f6cb0bc2293ba2b81a87c8f9edff130636d1fedfb6cb8716a96+packa_wuskafbcwlggi6ryaidwtawd7q/node_modules/next/dist/client/components/unauthorized-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_4 => "[project]/app/browser/page.js [app-rsc] (ecmascript, Next.js server component)" } [app-rsc] (ecmascript) ()
+ at Object.<anonymous> ()"

   98 |       const source = await getRedboxSource(browser)
   99 |       if (process.env.TURBOPACK) {
> 100 |         expect(stackFramesContent).toMatchInlineSnapshot(`""`)
      |                                    ^
  101 |         expect(source).toMatchInlineSnapshot(`
  102 |           "app/ssr/page.js (7:10) @ Inner
  103 |

  at Object.toMatchInlineSnapshot (development/app-dir/owner-stack-invalid-element-type/invalid-element-type.test.ts:100:36)

● app-dir - invalid-element-type › should catch invalid element from on ssr client component

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `app-dir - invalid-element-type should catch invalid element from on ssr client component 2`

- Snapshot  - 8
+ Received  + 4

- app/ssr/page.js (7:10) @ Inner
+ app/layout.tsx (0:0) @ [project]/app/layout.tsx [app-rsc] (ecmascript)

-    5 | // Intermediate component for testing owner stack
-    6 | function Inner() {
- >  7 |   return <Foo />
-      |          ^
-    8 | }
+   1 | import { ReactNode } from 'react'
+   2 | export default function Root({ children }: { children: ReactNode }) {
-    9 |
-   10 | export default function Page() {
+   3 |   return (

   99 |       if (process.env.TURBOPACK) {
  100 |         expect(stackFramesContent).toMatchInlineSnapshot(`""`)
> 101 |         expect(source).toMatchInlineSnapshot(`
      |                        ^
  102 |           "app/ssr/page.js (7:10) @ Inner
  103 |
  104 |              5 | // Intermediate component for testing owner stack

  at Object.toMatchInlineSnapshot (development/app-dir/owner-stack-invalid-element-type/invalid-element-type.test.ts:101:24)

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

pnpm test-start test/e2e/app-dir/app-compilation/index.test.ts

  • app dir > Loading > should render loading.js in initial html for slow page
Expand output

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

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

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

pnpm test-start test/e2e/app-dir/dynamic-in-generate-params/index.test.ts

  • app-dir - dynamic in generate params > should render sitemap with generateSitemaps in force-dynamic config dynamically
  • app-dir - dynamic in generate params > should be able to call while generating multiple dynamic sitemaps
  • app-dir - dynamic in generate params > should be able to call fetch while generating multiple dynamic pages
Expand output

● app-dir - dynamic in generate params › should render sitemap with generateSitemaps in force-dynamic config dynamically

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app-dir - dynamic in generate params › should be able to call while generating multiple dynamic sitemaps

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app-dir - dynamic in generate params › should be able to call fetch while generating multiple dynamic pages

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

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

__NEXT_EXPERIMENTAL_PPR=true pnpm test-start test/e2e/app-dir/app-rendering/rendering.test.ts (PPR)

  • app dir rendering > should serve app/page.server.js at /
  • app dir rendering > ISR > should revalidate the page when revalidate is configured
  • app dir rendering > SSR only > should run data in layout and page
  • app dir rendering > SSR only > should run data fetch in parallel
  • app dir rendering > static only > should run data in layout and page
  • app dir rendering > static only > should run data in parallel and use cached version for production
Expand output

● app dir rendering › should serve app/page.server.js at /

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app dir rendering › SSR only › should run data in layout and page

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app dir rendering › SSR only › should run data fetch in parallel

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app dir rendering › static only › should run data in layout and page

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app dir rendering › static only › should run data in parallel and use cached version for production

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app dir rendering › ISR › should revalidate the page when revalidate is configured

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app dir rendering › mixed static and dynamic › should generate static data during build and use it

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

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

__NEXT_EXPERIMENTAL_PPR=true pnpm test-start test/e2e/app-dir/app-basepath/index.test.ts (PPR)

  • app dir - basepath > should successfully hard navigate from pages -> app
  • app dir - basepath > should support basePath
  • app dir - basepath > should support Link with basePath prefixed
  • app dir - basepath > should prefix metadata og image with basePath
  • app dir - basepath > should prefix redirect() with basePath
  • app dir - basepath > should render usePathname without the basePath
  • app dir - basepath > should handle redirect in dynamic in suspense boundary routes with basePath
  • app dir - basepath > should only make a single RSC call to the current page (/base/refresh)
  • app dir - basepath > should only make a single RSC call to the current page (/base/refresh?foo=bar)
  • app dir - basepath > should properly stream an internal server action redirect() with a relative URL
  • app dir - basepath > should properly stream an internal server action redirect() with a absolute URL
  • app dir - basepath > should redirect externally when encountering absolute URLs on the same host outside the basePath
Expand output

● app dir - basepath › should successfully hard navigate from pages -> app

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app dir - basepath › should support basePath

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app dir - basepath › should support Link with basePath prefixed

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app dir - basepath › should prefix metadata og image with basePath

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app dir - basepath › should prefix redirect() with basePath

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app dir - basepath › should render usePathname without the basePath

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app dir - basepath › should handle redirect in dynamic in suspense boundary routes with basePath

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app dir - basepath › should only make a single RSC call to the current page (/base/refresh)

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app dir - basepath › should only make a single RSC call to the current page (/base/refresh?foo=bar)

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app dir - basepath › should properly stream an internal server action redirect() with a relative URL

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app dir - basepath › should properly stream an internal server action redirect() with a absolute URL

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● app dir - basepath › should redirect externally when encountering absolute URLs on the same host outside the basePath

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

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

pnpm test-dev test/development/app-dir/hmr-deleted-page/hmr-deleted-page.test.ts

  • hmr-deleted-page > should not show errors for a deleted page
Expand output

● hmr-deleted-page › should not show errors for a deleted page

expect(received).toBe(expected) // Object.is equality

Expected: "nested hello world"
Received: ""

  14 |   it('should not show errors for a deleted page', async () => {
  15 |     const browser = await next.browser('/page')
> 16 |     expect(await browser.elementByCss('p').text()).toBe('nested hello world')
     |                                                    ^
  17 |
  18 |     await next.deleteFile('app/page/test.tsx')
  19 |     await next.deleteFile('app/page/style.css')

  at Object.toBe (development/app-dir/hmr-deleted-page/hmr-deleted-page.test.ts:16:52)

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

__NEXT_EXPERIMENTAL_PPR=true pnpm test-dev test/e2e/app-dir/app-simple-routes/app-simple-routes.test.ts (PPR)

  • app-simple-routes > works with simple routes > renders a node route
Expand output

● app-simple-routes › works with simple routes › renders a node route

SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
    at JSON.parse (<anonymous>)

  11 |     it('renders a node route', async () => {
  12 |       expect(
> 13 |         JSON.parse(await next.render(bathPath + '/api/node.json'))
     |              ^
  14 |       ).toEqual({
  15 |         pathname: '/api/node.json',
  16 |       })

  at Object.parse (e2e/app-dir/app-simple-routes/app-simple-routes.test.ts:13:14)

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

pnpm test-start test/e2e/app-dir/_allow-underscored-root-directory/_allow-underscored-root-directory.test.ts

  • _allow-underscored-root-directory > should not serve app path with underscore
  • _allow-underscored-root-directory > should pages path with a underscore at the root
  • _allow-underscored-root-directory > should serve app path with %5F
Expand output

● _allow-underscored-root-directory › should not serve app path with underscore

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● _allow-underscored-root-directory › should pages path with a underscore at the root

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

● _allow-underscored-root-directory › should serve app path with %5F

next build failed with code/signal 1

   98 |           if (code || signal)
   99 |             reject(
> 100 |               new Error(`next build failed with code/signal ${code || signal}`)
      |               ^
  101 |             )
  102 |           else resolve()
  103 |         })

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

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

pnpm test test/integration/next-dynamic-css/test/index.test.js (turbopack)

  • next/dynamic > development mode > should load a App Router page correctly
Expand output

● next/dynamic › development mode › should load a App Router page correctly

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

Expected substring: "221, 221, 221"
Received string:    "rgba(0, 0, 0, 0)"

  37 |         .elementByCss('body div:nth-child(3)')
  38 |         .getComputedCss('background-color')
> 39 |     ).toContain('221, 221, 221')
     |       ^
  40 |
  41 |     expect(await browser.eval('document.documentElement.innerHTML')).toContain(
  42 |       'Where does it come from?'

  at Object.toContain (integration/next-dynamic-css/test/index.test.js:39:7)

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

pnpm test-dev test/development/app-dir/basic/basic.test.ts

  • basic app-dir tests > should reload app pages without error
Expand output

● basic app-dir tests › should reload app pages without error

Expected no Redbox but found one
header: 1 of 1 issue
Next.js (15.2.0-canary.16)
Server Error

Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/.next/server/app/page.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/server/require.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/server/load-components.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/build/utils.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/build/swc/options.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/build/swc/index.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/build/analysis/parse-module.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/build/analysis/get-page-static-info.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/server/lib/router-server.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/server/lib/start-server.js

This error happened while generating the page. Any console logs will be displayed in the terminal window.
description: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/.next/server/app/page.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/server/require.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/server/load-components.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/build/utils.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/build/swc/options.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/build/swc/index.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/build/analysis/parse-module.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/build/analysis/get-page-static-info.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/server/lib/router-server.js
- /tmp/next-install-ac3c98ca281716a79eba6e4549b98f8cd4fae478268db27773240e76fb1f0d1a/node_modules/.pnpm/file+..+next-repo-130c699409583aec346c3707689a3b2d3555f52208839485a3437cc4b01186d2+packages+n_yjixwaz44kp55dplvdh7wsmm7e/node_modules/next/dist/server/lib/start-server.js
source: null

  11 |     await using sandbox = await createSandbox(next, undefined, '/')
  12 |     const { session, browser } = sandbox
> 13 |     await session.assertNoRedbox()
     |     ^
  14 |
  15 |     browser.refresh()
  16 |

  at Object.<anonymous> (development/app-dir/basic/basic.test.ts:13:5)

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

pnpm test test/integration/babel-next-image/babel-next-image.test.js

  • babel-next-image > should work with babel and next/image
Expand output

● babel-next-image › should work with babel and next/image

expect(received).toBe(expected) // Object.is equality

Expected: 200
Received: 500

  15 |   it('should work with babel and next/image', async () => {
  16 |     const res = await fetchViaHTTP(appPort, '/')
> 17 |     expect(res.status).toBe(200)
     |                        ^
  18 |   })
  19 | })
  20 |

  at Object.toBe (integration/babel-next-image/babel-next-image.test.js:17:24)

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

pnpm test-dev test/development/app-dir/async-request-warnings/async-request-warnings.test.ts

  • dynamic-requests warnings > warnings on sync cookie access
  • dynamic-requests warnings > warnings on sync draftMode access
  • dynamic-requests warnings > warnings on sync headers access
  • dynamic-requests warnings > warnings on sync params access
  • dynamic-requests warnings > warnings on sync searchParams access
Expand output

● dynamic-requests warnings › warnings on sync cookie access

expect(received).toEqual(expected) // deep equality

- Expected  - 12
+ Received  +  2

  Object {
-   "browserConsoleWarnings": Array [
-     StringContaining "`cookies().get('page')`.",
-     StringContaining "`cookies().get('component')`.",
-     StringContaining "`cookies().has('component')`.",
-     StringContaining "`...cookies()` or similar iteration",
-   ],
-   "terminalCookieErrors": Array [
-     StringContaining "`cookies().get('page')`.",
-     StringContaining "`cookies().get('component')`.",
-     StringContaining "`cookies().has('component')`.",
-     StringContaining "`...cookies()` or similar iteration",
-   ],
+   "browserConsoleWarnings": Array [],
+   "terminalCookieErrors": Array [],
  }

  19 |       return line.includes('Route "/request/cookies')
  20 |     })
> 21 |     expect({ browserConsoleWarnings, terminalCookieErrors }).toEqual({
     |                                                              ^
  22 |       browserConsoleWarnings: [
  23 |         expect.stringContaining("`cookies().get('page')`."),
  24 |         expect.stringContaining("`cookies().get('component')`."),

  at Object.toEqual (development/app-dir/async-request-warnings/async-request-warnings.test.ts:21:62)

● dynamic-requests warnings › warnings on sync draftMode access

expect(received).toEqual(expected) // deep equality

- Expected  - 12
+ Received  +  2

  Object {
-   "browserConsoleWarnings": Array [
-     StringContaining "`draftMode().isEnabled`.",
-     StringContaining "`draftMode().isEnabled`.",
-     StringContaining "`draftMode().enable()`.",
-     StringContaining "`draftMode().isEnabled`.",
-   ],
-   "terminalCookieErrors": Array [
-     StringContaining "`draftMode().isEnabled`.",
-     StringContaining "`draftMode().isEnabled`.",
-     StringContaining "`draftMode().enable()`.",
-     StringContaining "`draftMode().isEnabled`.",
-   ],
+   "browserConsoleWarnings": Array [],
+   "terminalCookieErrors": Array [],
  }

  48 |       return line.includes('Route "/request/draftMode')
  49 |     })
> 50 |     expect({ browserConsoleWarnings, terminalCookieErrors }).toEqual({
     |                                                              ^
  51 |       browserConsoleWarnings: [
  52 |         expect.stringContaining('`draftMode().isEnabled`.'),
  53 |         expect.stringContaining('`draftMode().isEnabled`.'),

  at Object.toEqual (development/app-dir/async-request-warnings/async-request-warnings.test.ts:50:62)

● dynamic-requests warnings › warnings on sync headers access

expect(received).toEqual(expected) // deep equality

- Expected  - 12
+ Received  +  2

  Object {
-   "browserConsoleWarnings": Array [
-     StringContaining "`headers().get('page')`.",
-     StringContaining "`headers().get('component')`.",
-     StringContaining "`headers().has('component')`.",
-     StringContaining "`...headers()` or similar iteration",
-   ],
-   "terminalCookieErrors": Array [
-     StringContaining "`headers().get('page')`.",
-     StringContaining "`headers().get('component')`.",
-     StringContaining "`headers().has('component')`.",
-     StringContaining "`...headers()` or similar iteration",
-   ],
+   "browserConsoleWarnings": Array [],
+   "terminalCookieErrors": Array [],
  }

  77 |       return line.includes('Route "/request/headers')
  78 |     })
> 79 |     expect({ browserConsoleWarnings, terminalCookieErrors }).toEqual({
     |                                                              ^
  80 |       browserConsoleWarnings: [
  81 |         expect.stringContaining("`headers().get('page')`."),
  82 |         expect.stringContaining("`headers().get('component')`."),

  at Object.toEqual (development/app-dir/async-request-warnings/async-request-warnings.test.ts:79:62)

● dynamic-requests warnings › warnings on sync params access

expect(received).toEqual(expected) // deep equality

- Expected  - 12
+ Received  +  2

  Object {
-   "browserConsoleWarnings": Array [
-     StringContaining "`params.slug`.",
-     StringContaining "`params.slug`.",
-     StringContaining "`params.slug`.",
-     StringContaining "`...params` or similar expression",
-   ],
-   "terminalCookieErrors": Array [
-     StringContaining "`params.slug`.",
-     StringContaining "`params.slug`.",
-     StringContaining "`params.slug`.",
-     StringContaining "`...params` or similar expression",
-   ],
+   "browserConsoleWarnings": Array [],
+   "terminalCookieErrors": Array [],
  }

  106 |       return line.includes('Route "/request/params/[slug]')
  107 |     })
> 108 |     expect({ browserConsoleWarnings, terminalCookieErrors }).toEqual({
      |                                                              ^
  109 |       browserConsoleWarnings: [
  110 |         expect.stringContaining('`params.slug`.'),
  111 |         expect.stringContaining('`params.slug`.'),

  at Object.toEqual (development/app-dir/async-request-warnings/async-request-warnings.test.ts:108:62)

● dynamic-requests warnings › warnings on sync searchParams access

expect(received).toEqual(expected) // deep equality

- Expected  - 12
+ Received  +  2

  Object {
-   "browserConsoleWarnings": Array [
-     StringContaining "`searchParams.slug`.",
-     StringContaining "`searchParams.slug`.",
-     StringContaining "`searchParams.slug`.",
-     StringContaining "`Object.keys(searchParams)` or similar",
-   ],
-   "terminalCookieErrors": Array [
-     StringContaining "`searchParams.slug`.",
-     StringContaining "`searchParams.slug`.",
-     StringContaining "`searchParams.slug`.",
-     StringContaining "`Object.keys(searchParams)` or similar",
-   ],
+   "browserConsoleWarnings": Array [],
+   "terminalCookieErrors": Array [],
  }

  135 |       return line.includes('Route "/request/searchParams')
  136 |     })
> 137 |     expect({ browserConsoleWarnings, terminalCookieErrors }).toEqual({
      |                                                              ^
  138 |       browserConsoleWarnings: [
  139 |         expect.stringContaining('`searchParams.slug`.'),
  140 |         expect.stringContaining('`searchParams.slug`.'),

  at Object.toEqual (development/app-dir/async-request-warnings/async-request-warnings.test.ts:137:62)

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

pnpm test-dev-turbo test/development/acceptance-app/dynamic-metadata-error.test.ts (turbopack)

  • dynamic metadata error > should error when id is missing in generateImageMetadata
  • dynamic metadata error > should error when id is missing in generateSitemaps
  • dynamic metadata error > should error if the default export of dynamic image is missing
Expand output

● dynamic metadata error › should error when id is missing in generateImageMetadata

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

Expected substring: "id property is required for every item returned from generateImageMetadata"
Received string:    "   Loading config from /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/next.config.js
   Loading config from /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/next.config.js
   ▲ Next.js 15.2.0-canary.16 (Turbopack)
   - Local:        http://localhost:46459
   - Network:      http://135.181.48.161:46459·
 ✓ Starting...
   Loading config from /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/next.config.js·
   We detected TypeScript in your project and created a tsconfig.json file for you.
Creating turbopack project {
  dir: '/tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3',
  testMode: true
}
   Loading config from /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/next.config.js
 ✓ Ready in 804ms
   Loading config from /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/next.config.js
 ○ Compiling /metadata-base/unset/icon/[id] ...
 ✓ Compiled /metadata-base/unset/icon/[id] in 782ms
 ⨯ Error: Failed to load external module next/dist/compiled/next-server/app-route.runtime.dev.js: Error: Cannot find module 'next\\dist\\server\\app-render\\work-async-storage.external.js'
Require stack:
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/.next/server/chunks/[root of the server]__ec2fac._.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/.next/server/chunks/[turbopack]_runtime.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/.next/server/app/metadata-base/unset/icon/[__metadata_id__]/route.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/server/require.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/server/load-components.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/build/utils.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/build/swc/options.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/build/swc/index.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/build/analysis/parse-module.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/build/analysis/get-page-static-info.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/server/lib/router-server.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/server/lib/start-server.js

  at [externals]/next/dist/compiled/next-server/app-route.runtime.dev.js [external] (next/dist/compiled/next-server/app-route.runtime.dev.js, cjs) (../.next/server/chunks/[root of the server]__ec2fac._.js:7:13)
  at Object.<anonymous> (../.next/server/app/metadata-base/unset/icon/[__metadata_id__]/route.js:7:26) {
    page: '/metadata-base/unset/icon/100'
  }
   ○ Compiling /_error ...
   ✓ Compiled /_error in 766ms
   GET /metadata-base/unset/icon/100 500 in 1838ms
  "
  at toContain (development/acceptance-app/dynamic-metadata-error.test.ts:43:30)
  at fn (lib/next-test-utils.ts:806:20)
  at Object.<anonymous> (development/acceptance-app/dynamic-metadata-error.test.ts:42:5)

● dynamic metadata error › should error when id is missing in generateSitemaps

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

Expected substring: "id property is required for every item returned from generateSitemaps"
Received string:    "   Loading config from /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/next.config.js
   Loading config from /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/next.config.js
   ▲ Next.js 15.2.0-canary.16 (Turbopack)
   - Local:        http://localhost:42135
   - Network:      http://135.181.48.161:42135·
 ✓ Starting...
   Loading config from /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/next.config.js·
   We detected TypeScript in your project and created a tsconfig.json file for you.
Creating turbopack project {
  dir: '/tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3',
  testMode: true
}
   Loading config from /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/next.config.js
 ✓ Ready in 832ms
   Loading config from /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/next.config.js
 ○ Compiling /metadata-base/unset/sitemap/[id] ...
 ✓ Compiled /metadata-base/unset/sitemap/[id] in 922ms
 ⨯ Error: Failed to load external module next/dist/compiled/next-server/app-route.runtime.dev.js: Error: Cannot find module 'next\\dist\\server\\app-render\\work-async-storage.external.js'
Require stack:
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/.next/server/chunks/[root of the server]__b4c1c5._.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/.next/server/chunks/[turbopack]_runtime.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/.next/server/app/metadata-base/unset/sitemap/[__metadata_id__]/route.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/server/require.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/server/load-components.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/build/utils.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/build/swc/options.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/build/swc/index.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/build/analysis/parse-module.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/build/analysis/get-page-static-info.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/server/lib/router-server.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/server/lib/start-server.js

  at [externals]/next/dist/compiled/next-server/app-route.runtime.dev.js [external] (next/dist/compiled/next-server/app-route.runtime.dev.js, cjs) (../.next/server/chunks/[root of the server]__b4c1c5._.js:7:13)
  at Object.<anonymous> (../.next/server/app/metadata-base/unset/sitemap/[__metadata_id__]/route.js:6:26) {
    page: '/metadata-base/unset/sitemap/100.xml'
  }
   ○ Compiling /_error ...
   ✓ Compiled /_error in 911ms
   GET /metadata-base/unset/sitemap/100.xml 500 in 2079ms
  "
  at toContain (development/acceptance-app/dynamic-metadata-error.test.ts:76:30)
  at fn (lib/next-test-utils.ts:806:20)
  at Object.<anonymous> (development/acceptance-app/dynamic-metadata-error.test.ts:75:5)

● dynamic metadata error › should error if the default export of dynamic image is missing

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

Expected substring: "Default export is missing in"
Received string:    "   Loading config from /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/next.config.js
   Loading config from /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/next.config.js
   ▲ Next.js 15.2.0-canary.16 (Turbopack)
   - Local:        http://localhost:37601
   - Network:      http://135.181.48.161:37601·
 ✓ Starting...
   Loading config from /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/next.config.js·
   We detected TypeScript in your project and created a tsconfig.json file for you.
Creating turbopack project {
  dir: '/tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3',
  testMode: true
}
   Loading config from /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/next.config.js
 ✓ Ready in 823ms
   Loading config from /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/next.config.js
 ○ Compiling /opengraph-image ...
 ✓ Compiled /opengraph-image in 930ms
 ⨯ Error: Failed to load external module next/dist/compiled/next-server/app-route.runtime.dev.js: Error: Cannot find module 'next\\dist\\server\\app-render\\work-async-storage.external.js'
Require stack:
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/.next/server/chunks/[root of the server]__d3616f._.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/.next/server/chunks/[turbopack]_runtime.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/.next/server/app/opengraph-image/route.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/server/require.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/server/load-components.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/build/utils.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/build/swc/options.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/build/swc/index.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/build/analysis/parse-module.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/build/analysis/get-page-static-info.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/server/lib/router-server.js
- /tmp/next-install-b0f1a54730a5b8bb714b6fdb8667796eb762ee0cf00e4e07e89486dd5e22b9b3/node_modules/.pnpm/file+..+next-repo-a325d8de40b089d712089babc859186cb2151a7ad23f8614c89680b13e368fc6+packages+n_uqa6koaocetnnzsg4et24zibp4/node_modules/next/dist/server/lib/start-server.js

  at [externals]/next/dist/compiled/next-server/app-route.runtime.dev.js [external] (next/dist/compiled/next-server/app-route.runtime.dev.js, cjs) (../.next/server/chunks/[root of the server]__d3616f._.js:7:13)
  at Object.<anonymous> (../.next/server/app/opengraph-image/route.js:6:26) {
    page: '/opengraph-image'
  }
   ○ Compiling /_error ...
   ✓ Compiled /_error in 1081ms
   GET /opengraph-image 500 in 2223ms
  "
  at toContain (development/acceptance-app/dynamic-metadata-error.test.ts:95:30)
  at fn (lib/next-test-utils.ts:806:20)
  at Object.<anonymous> (development/acceptance-app/dynamic-metadata-error.test.ts:94:5)

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

pnpm test test/integration/root-catchall-cache/test/index.test.js

  • Root Catch-all Cache > production mode > should cache / correctly
Expand output

● Root Catch-all Cache › production mode › should cache / correctly

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/root-catchall-cache/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/root-catchall-cache/next.config.js
   ▲ Next.js 15.2.0-canary.16

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/root-catchall-cache/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/root-catchall-cache/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/root-catchall-cache/next.config.js
 ✓ Compiled successfully
   Checking validity of types ...
   Collecting page data ...
Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/root-catchall-cache/.next/server/app/[[...slug]]/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at <unknown> (../dist/server/require-hook.js:55:36)
  at mod.require (../dist/server/require-hook.js:65:28)
  at ../../app-render/work-async-storage.external (../dist/compiled/next-server/app-page.runtime.prod.js:68:19078)
  at r (../dist/compiled/next-server/app-page.runtime.prod.js:124:18839)
  at <unknown> (../dist/compiled/next-server/app-page.runtime.prod.js:124:20596)
  at <unknown> (../dist/compiled/next-server/app-page.runtime.prod.js:134:3724) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  > Build error occurred
  Error: Failed to collect page data for /[[...slug]]
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

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

pnpm test-dev test/development/acceptance-app/rsc-runtime-errors.test.ts

  • Error overlay - RSC runtime errors > should show runtime errors if invalid client API from node_modules is executed
  • Error overlay - RSC runtime errors > should show runtime errors if invalid server API from node_modules is executed
  • Error overlay - RSC runtime errors > should show source code for jsx errors from server component
  • Error overlay - RSC runtime errors > should show the userland code error trace when fetch failed error occurred
  • Error overlay - RSC runtime errors > should not show the bundle layer info in the file trace
Expand output

● Error overlay - RSC runtime errors › should show runtime errors if invalid client API from node_modules is executed

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

Expected substring: "Error: useState only works in Client Components. Add the \"use client\" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/react-client-hook-in-server-component"
Received string:    "Error: Cannot find module 'next\\dist\\server\\app-render\\work-async-storage.external.js'
Require stack:
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/.next/server/app/server/page.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/server/require.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/server/load-components.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/build/utils.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/build/swc/options.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/build/swc/index.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/build/analysis/parse-module.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/build/analysis/get-page-static-info.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/server/lib/router-server.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/server/lib/start-server.js"

  31 |     const errorDescription = await getRedboxDescription(browser)
  32 |
> 33 |     expect(errorDescription).toContain(
     |                              ^
  34 |       `Error: useState only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/react-client-hook-in-server-component`
  35 |     )
  36 |   })

  at Object.toContain (development/acceptance-app/rsc-runtime-errors.test.ts:33:30)

● Error overlay - RSC runtime errors › should show runtime errors if invalid server API from node_modules is executed

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

Expected substring: "Error: `cookies` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context"
Received string:    "Error: Cannot find module 'next\\dist\\server\\app-render\\work-async-storage.external.js'
Require stack:
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/.next/server/app/client/page.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/server/require.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/server/load-components.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/build/utils.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/build/swc/options.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/build/swc/index.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/build/analysis/parse-module.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/build/analysis/get-page-static-info.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/server/lib/router-server.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/server/lib/start-server.js"

  54 |
  55 |     const errorDescription = await getRedboxDescription(browser)
> 56 |     expect(errorDescription).toContain(
     |                              ^
  57 |       'Error: `cookies` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context'
  58 |     )
  59 |   })

  at Object.toContain (development/acceptance-app/rsc-runtime-errors.test.ts:56:30)

● Error overlay - RSC runtime errors › should show source code for jsx errors from server component

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

Expected substring: "Error: alert is not defined"
Received string:    "Error: Cannot find module 'next\\dist\\server\\app-render\\work-async-storage.external.js'
Require stack:
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/.next/server/app/server/page.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/server/require.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/server/load-components.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/build/utils.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/build/swc/options.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/build/swc/index.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/build/analysis/parse-module.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/build/analysis/get-page-static-info.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/server/lib/router-server.js
- /tmp/next-install-41dac7aa6a81e3950f41c43de07dd21c1d9da7e03741dc17a9d7d95bbf118491/node_modules/.pnpm/next@file+..+next-repo-6c11217898e865dd9d791ea23d59549675dbc39642d66e164691900f98613be1+packa_62vmorwjdv7blsq4sgvisuhyym/node_modules/next/dist/server/lib/start-server.js"

  74 |     const errorDescription = await getRedboxDescription(browser)
  75 |
> 76 |     expect(errorDescription).toContain(`Error: alert is not defined`)
     |                              ^
  77 |   })
  78 |
  79 |   it('should show the userland code error trace when fetch failed error occurred', async () => {

  at Object.toContain (development/acceptance-app/rsc-runtime-errors.test.ts:76:30)

● Error overlay - RSC runtime errors › should show the userland code error trace when fetch failed error occurred

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

Matcher error: received value must not be null nor undefined

Received has value: null

  92 |     const source = await getRedboxSource(browser)
  93 |     // Can show the original source code
> 94 |     expect(source).toContain('app/server/page.js')
     |                    ^
  95 |     expect(source).toContain(`await fetch('http://locahost:3000/xxxx')`)
  96 |   })
  97 |

  at Object.toContain (development/acceptance-app/rsc-runtime-errors.test.ts:94:20)

● Error overlay - RSC runtime errors › should not show the bundle layer info in the file trace

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

Matcher error: received value must not be null nor undefined

Received has value: null

  125 |     await assertHasRedbox(browser)
  126 |     const source = await getRedboxSource(browser)
> 127 |     expect(source).toContain('app/server/page.js')
      |                    ^
  128 |     expect(source).not.toContain('//app/server/page.js')
  129 |     // Does not contain webpack traces in file path
  130 |     expect(source).not.toMatch(/webpack(-internal:)?\/\//)

  at Object.toContain (development/acceptance-app/rsc-runtime-errors.test.ts:127:20)

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

pnpm test test/integration/next-image-new/app-dir-localpatterns/test/index.test.ts

  • Image localPatterns config > development mode > should load matching images
  • Image localPatterns config > development mode > should block unmatched image does-not-exist
  • Image localPatterns config > development mode > should block unmatched image nested-assets-query
  • Image localPatterns config > development mode > should block unmatched image nested-blocked
  • Image localPatterns config > development mode > should block unmatched image top-level
  • Image localPatterns config > production mode > should load matching images
  • Image localPatterns config > production mode > should block unmatched image does-not-exist
  • Image localPatterns config > production mode > should block unmatched image nested-assets-query
  • Image localPatterns config > production mode > should block unmatched image nested-blocked
  • Image localPatterns config > production mode > should block unmatched image top-level
  • Image localPatterns config > production mode > should build correct images-manifest.json
Expand output

● Image localPatterns config › development mode › should load matching images

Expected no Redbox but found one
header: 1 of 1 issue
Next.js (15.2.0-canary.16)
Server Error

Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page.runtime.dev.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/.next/server/app/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/analysis/parse-module.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/analysis/get-page-static-info.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js

This error happened while generating the page. Any console logs will be displayed in the terminal window.
description: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page.runtime.dev.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/.next/server/app/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/analysis/parse-module.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/analysis/get-page-static-info.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js
source: null

  36 |     const browser = await webdriver(appPort, '/')
  37 |     if (mode === 'dev') {
> 38 |       await assertNoRedbox(browser)
     |       ^
  39 |     }
  40 |     const ids = ['nested-assets', 'static-img']
  41 |     const urls = await Promise.all(ids.map((id) => getSrc(browser, id)))

  at Object.<anonymous> (integration/next-image-new/app-dir-localpatterns/test/index.test.ts:38:7)

● Image localPatterns config › development mode › should block unmatched image does-not-exist

expect(received).toMatch(expected)

Expected pattern: /Invalid src prop (.+) on `next\/image` does not match `images.localPatterns` configured/g
Received string:  "1 of 1 issue
Next.js (15.2.0-canary.16)
Server Error·
Error: Cannot find module 'next\\dist\\server\\app-render\\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page.runtime.dev.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/.next/server/app/does-not-exist/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/analysis/parse-module.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/analysis/get-page-static-info.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js·
This error happened while generating the page. Any console logs will be displayed in the terminal window."

  57 |     if (mode === 'dev') {
  58 |       await assertHasRedbox(browser)
> 59 |       expect(await getRedboxHeader(browser)).toMatch(
     |                                              ^
  60 |         /Invalid src prop (.+) on `next\/image` does not match `images.localPatterns` configured/g
  61 |       )
  62 |     } else {

  at toMatch (integration/next-image-new/app-dir-localpatterns/test/index.test.ts:59:46)

● Image localPatterns config › development mode › should block unmatched image nested-assets-query

expect(received).toMatch(expected)

Expected pattern: /Invalid src prop (.+) on `next\/image` does not match `images.localPatterns` configured/g
Received string:  "1 of 1 issue
Next.js (15.2.0-canary.16)
Server Error·
Error: Cannot find module 'next\\dist\\server\\app-render\\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page.runtime.dev.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/.next/server/app/nested-assets-query/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/analysis/parse-module.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/analysis/get-page-static-info.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js·
This error happened while generating the page. Any console logs will be displayed in the terminal window."

  57 |     if (mode === 'dev') {
  58 |       await assertHasRedbox(browser)
> 59 |       expect(await getRedboxHeader(browser)).toMatch(
     |                                              ^
  60 |         /Invalid src prop (.+) on `next\/image` does not match `images.localPatterns` configured/g
  61 |       )
  62 |     } else {

  at toMatch (integration/next-image-new/app-dir-localpatterns/test/index.test.ts:59:46)

● Image localPatterns config › development mode › should block unmatched image nested-blocked

expect(received).toMatch(expected)

Expected pattern: /Invalid src prop (.+) on `next\/image` does not match `images.localPatterns` configured/g
Received string:  "1 of 1 issue
Next.js (15.2.0-canary.16)
Server Error·
Error: Cannot find module 'next\\dist\\server\\app-render\\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page.runtime.dev.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/.next/server/app/nested-blocked/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/analysis/parse-module.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/analysis/get-page-static-info.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js·
This error happened while generating the page. Any console logs will be displayed in the terminal window."

  57 |     if (mode === 'dev') {
  58 |       await assertHasRedbox(browser)
> 59 |       expect(await getRedboxHeader(browser)).toMatch(
     |                                              ^
  60 |         /Invalid src prop (.+) on `next\/image` does not match `images.localPatterns` configured/g
  61 |       )
  62 |     } else {

  at toMatch (integration/next-image-new/app-dir-localpatterns/test/index.test.ts:59:46)

● Image localPatterns config › development mode › should block unmatched image top-level

expect(received).toMatch(expected)

Expected pattern: /Invalid src prop (.+) on `next\/image` does not match `images.localPatterns` configured/g
Received string:  "1 of 1 issue
Next.js (15.2.0-canary.16)
Server Error·
Error: Cannot find module 'next\\dist\\server\\app-render\\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page.runtime.dev.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/.next/server/app/top-level/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/analysis/parse-module.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/analysis/get-page-static-info.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js·
This error happened while generating the page. Any console logs will be displayed in the terminal window."

  57 |     if (mode === 'dev') {
  58 |       await assertHasRedbox(browser)
> 59 |       expect(await getRedboxHeader(browser)).toMatch(
     |                                              ^
  60 |         /Invalid src prop (.+) on `next\/image` does not match `images.localPatterns` configured/g
  61 |       )
  62 |     } else {

  at toMatch (integration/next-image-new/app-dir-localpatterns/test/index.test.ts:59:46)

● Image localPatterns config › production mode › should load matching images

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   ▲ Next.js 15.2.0-canary.16

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
 ✓ Compiled successfully
   Checking validity of types ...
   Collecting page data ...
Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/.next/server/app/_not-found/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at <unknown> (../dist/server/require-hook.js:55:36)
  at mod.require (../dist/server/require-hook.js:65:28)
  at ../../app-render/work-async-storage.external (../dist/compiled/next-server/app-page.runtime.prod.js:68:19078)
  at r (../dist/compiled/next-server/app-page.runtime.prod.js:124:18839)
  at <unknown> (../dist/compiled/next-server/app-page.runtime.prod.js:124:20596)
  at <unknown> (../dist/compiled/next-server/app-page.runtime.prod.js:134:3724) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  > Build error occurred
  Error: Failed to collect page data for /_not-found
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Image localPatterns config › production mode › should block unmatched image does-not-exist

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   ▲ Next.js 15.2.0-canary.16

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
 ✓ Compiled successfully
   Checking validity of types ...
   Collecting page data ...
Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/.next/server/app/_not-found/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at <unknown> (../dist/server/require-hook.js:55:36)
  at mod.require (../dist/server/require-hook.js:65:28)
  at ../../app-render/work-async-storage.external (../dist/compiled/next-server/app-page.runtime.prod.js:68:19078)
  at r (../dist/compiled/next-server/app-page.runtime.prod.js:124:18839)
  at <unknown> (../dist/compiled/next-server/app-page.runtime.prod.js:124:20596)
  at <unknown> (../dist/compiled/next-server/app-page.runtime.prod.js:134:3724) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  > Build error occurred
  Error: Failed to collect page data for /_not-found
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Image localPatterns config › production mode › should block unmatched image nested-assets-query

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   ▲ Next.js 15.2.0-canary.16

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
 ✓ Compiled successfully
   Checking validity of types ...
   Collecting page data ...
Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/.next/server/app/_not-found/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at <unknown> (../dist/server/require-hook.js:55:36)
  at mod.require (../dist/server/require-hook.js:65:28)
  at ../../app-render/work-async-storage.external (../dist/compiled/next-server/app-page.runtime.prod.js:68:19078)
  at r (../dist/compiled/next-server/app-page.runtime.prod.js:124:18839)
  at <unknown> (../dist/compiled/next-server/app-page.runtime.prod.js:124:20596)
  at <unknown> (../dist/compiled/next-server/app-page.runtime.prod.js:134:3724) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  > Build error occurred
  Error: Failed to collect page data for /_not-found
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Image localPatterns config › production mode › should block unmatched image nested-blocked

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   ▲ Next.js 15.2.0-canary.16

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
 ✓ Compiled successfully
   Checking validity of types ...
   Collecting page data ...
Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/.next/server/app/_not-found/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at <unknown> (../dist/server/require-hook.js:55:36)
  at mod.require (../dist/server/require-hook.js:65:28)
  at ../../app-render/work-async-storage.external (../dist/compiled/next-server/app-page.runtime.prod.js:68:19078)
  at r (../dist/compiled/next-server/app-page.runtime.prod.js:124:18839)
  at <unknown> (../dist/compiled/next-server/app-page.runtime.prod.js:124:20596)
  at <unknown> (../dist/compiled/next-server/app-page.runtime.prod.js:134:3724) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  > Build error occurred
  Error: Failed to collect page data for /_not-found
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Image localPatterns config › production mode › should block unmatched image top-level

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   ▲ Next.js 15.2.0-canary.16

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
 ✓ Compiled successfully
   Checking validity of types ...
   Collecting page data ...
Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/.next/server/app/_not-found/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at <unknown> (../dist/server/require-hook.js:55:36)
  at mod.require (../dist/server/require-hook.js:65:28)
  at ../../app-render/work-async-storage.external (../dist/compiled/next-server/app-page.runtime.prod.js:68:19078)
  at r (../dist/compiled/next-server/app-page.runtime.prod.js:124:18839)
  at <unknown> (../dist/compiled/next-server/app-page.runtime.prod.js:124:20596)
  at <unknown> (../dist/compiled/next-server/app-page.runtime.prod.js:134:3724) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  > Build error occurred
  Error: Failed to collect page data for /_not-found
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Image localPatterns config › production mode › should build correct images-manifest.json

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   ▲ Next.js 15.2.0-canary.16

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/next.config.js
 ✓ Compiled successfully
   Checking validity of types ...
   Collecting page data ...
Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-localpatterns/.next/server/app/_not-found/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at <unknown> (../dist/server/require-hook.js:55:36)
  at mod.require (../dist/server/require-hook.js:65:28)
  at ../../app-render/work-async-storage.external (../dist/compiled/next-server/app-page.runtime.prod.js:68:19078)
  at r (../dist/compiled/next-server/app-page.runtime.prod.js:124:18839)
  at <unknown> (../dist/compiled/next-server/app-page.runtime.prod.js:124:20596)
  at <unknown> (../dist/compiled/next-server/app-page.runtime.prod.js:134:3724) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  > Build error occurred
  Error: Failed to collect page data for /_not-found
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

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

pnpm test test/integration/next-image-new/app-dir/test/static.test.ts (turbopack)

  • Static Image Component Tests > production mode > Should allow an image with a static src to omit height and width
  • Static Image Component Tests > production mode > Should use immutable cache-control header for static import
  • Static Image Component Tests > production mode > Should use immutable cache-control header even when unoptimized
  • Static Image Component Tests > production mode > should have containing followed by for priority image
  • Static Image Component Tests > production mode > Should automatically provide an image height and width
  • Static Image Component Tests > production mode > should use width and height prop to override import
  • Static Image Component Tests > production mode > should use height prop to adjust both width and height
  • Static Image Component Tests > production mode > should use width prop to adjust both width and height
  • Static Image Component Tests > production mode > should add a data URL placeholder to an image
  • Static Image Component Tests > production mode > should add a blur placeholder a statically imported jpg
  • Static Image Component Tests > production mode > should add a blur placeholder a statically imported png
  • Static Image Component Tests > production mode > should add a blur placeholder a statically imported png with fill
  • Static Image Component Tests > production mode > should add placeholder with blurDataURL and fill
  • Static Image Component Tests > production mode > should add placeholder even when blurDataURL aspect ratio does not match width/height ratio
  • Static Image Component Tests > production mode > should load direct imported image
Expand output

● Static Image Component Tests › production mode › Should allow an image with a static src to omit height and width

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   ▲ Next.js 15.2.0-canary.16 (Turbopack)

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Building (0/60) ...
   Building (15/60) 
   Building (30/60) 
   Building (45/60) 
 ✓ Building (60/60)
 ⚠ Turbopack build collected 1 warnings:
Page: {"type":"app","side":"server","page":"/static-img/page"}
./test/integration/next-image-new/app-dir/public/test.avif
AVIF image not supported
This version of Turbopack does not support AVIF images, will emit without optimization or encoding


 ✓ Compiled successfully in 4.5s
   Checking validity of types ...
   Collecting page data ...
Error: Failed to load external module next/dist/compiled/next-server/app-page-turbo.runtime.prod.js: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/app/hidden-parent/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at externalRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:368:15)
  at [externals]/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js [external] (next/dist/compiled/next-server/app-page-turbo.runtime.prod.js, cjs) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:910)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/module.compiled.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:1305)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:2:21374)
  > Build error occurred
  Error: Failed to collect page data for /hidden-parent
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Static Image Component Tests › production mode › Should use immutable cache-control header for static import

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   ▲ Next.js 15.2.0-canary.16 (Turbopack)

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Building (0/60) ...
   Building (15/60) 
   Building (30/60) 
   Building (45/60) 
 ✓ Building (60/60)
 ⚠ Turbopack build collected 1 warnings:
Page: {"type":"app","side":"server","page":"/static-img/page"}
./test/integration/next-image-new/app-dir/public/test.avif
AVIF image not supported
This version of Turbopack does not support AVIF images, will emit without optimization or encoding


 ✓ Compiled successfully in 4.5s
   Checking validity of types ...
   Collecting page data ...
Error: Failed to load external module next/dist/compiled/next-server/app-page-turbo.runtime.prod.js: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/app/hidden-parent/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at externalRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:368:15)
  at [externals]/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js [external] (next/dist/compiled/next-server/app-page-turbo.runtime.prod.js, cjs) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:910)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/module.compiled.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:1305)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:2:21374)
  > Build error occurred
  Error: Failed to collect page data for /hidden-parent
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Static Image Component Tests › production mode › Should use immutable cache-control header even when unoptimized

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   ▲ Next.js 15.2.0-canary.16 (Turbopack)

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Building (0/60) ...
   Building (15/60) 
   Building (30/60) 
   Building (45/60) 
 ✓ Building (60/60)
 ⚠ Turbopack build collected 1 warnings:
Page: {"type":"app","side":"server","page":"/static-img/page"}
./test/integration/next-image-new/app-dir/public/test.avif
AVIF image not supported
This version of Turbopack does not support AVIF images, will emit without optimization or encoding


 ✓ Compiled successfully in 4.5s
   Checking validity of types ...
   Collecting page data ...
Error: Failed to load external module next/dist/compiled/next-server/app-page-turbo.runtime.prod.js: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/app/hidden-parent/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at externalRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:368:15)
  at [externals]/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js [external] (next/dist/compiled/next-server/app-page-turbo.runtime.prod.js, cjs) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:910)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/module.compiled.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:1305)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:2:21374)
  > Build error occurred
  Error: Failed to collect page data for /hidden-parent
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Static Image Component Tests › production mode › should have containing followed by for priority image

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   ▲ Next.js 15.2.0-canary.16 (Turbopack)

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Building (0/60) ...
   Building (15/60) 
   Building (30/60) 
   Building (45/60) 
 ✓ Building (60/60)
 ⚠ Turbopack build collected 1 warnings:
Page: {"type":"app","side":"server","page":"/static-img/page"}
./test/integration/next-image-new/app-dir/public/test.avif
AVIF image not supported
This version of Turbopack does not support AVIF images, will emit without optimization or encoding


 ✓ Compiled successfully in 4.5s
   Checking validity of types ...
   Collecting page data ...
Error: Failed to load external module next/dist/compiled/next-server/app-page-turbo.runtime.prod.js: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/app/hidden-parent/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at externalRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:368:15)
  at [externals]/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js [external] (next/dist/compiled/next-server/app-page-turbo.runtime.prod.js, cjs) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:910)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/module.compiled.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:1305)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:2:21374)
  > Build error occurred
  Error: Failed to collect page data for /hidden-parent
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Static Image Component Tests › production mode › Should automatically provide an image height and width

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   ▲ Next.js 15.2.0-canary.16 (Turbopack)

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Building (0/60) ...
   Building (15/60) 
   Building (30/60) 
   Building (45/60) 
 ✓ Building (60/60)
 ⚠ Turbopack build collected 1 warnings:
Page: {"type":"app","side":"server","page":"/static-img/page"}
./test/integration/next-image-new/app-dir/public/test.avif
AVIF image not supported
This version of Turbopack does not support AVIF images, will emit without optimization or encoding


 ✓ Compiled successfully in 4.5s
   Checking validity of types ...
   Collecting page data ...
Error: Failed to load external module next/dist/compiled/next-server/app-page-turbo.runtime.prod.js: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/app/hidden-parent/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at externalRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:368:15)
  at [externals]/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js [external] (next/dist/compiled/next-server/app-page-turbo.runtime.prod.js, cjs) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:910)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/module.compiled.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:1305)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:2:21374)
  > Build error occurred
  Error: Failed to collect page data for /hidden-parent
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Static Image Component Tests › production mode › should use width and height prop to override import

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   ▲ Next.js 15.2.0-canary.16 (Turbopack)

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Building (0/60) ...
   Building (15/60) 
   Building (30/60) 
   Building (45/60) 
 ✓ Building (60/60)
 ⚠ Turbopack build collected 1 warnings:
Page: {"type":"app","side":"server","page":"/static-img/page"}
./test/integration/next-image-new/app-dir/public/test.avif
AVIF image not supported
This version of Turbopack does not support AVIF images, will emit without optimization or encoding


 ✓ Compiled successfully in 4.5s
   Checking validity of types ...
   Collecting page data ...
Error: Failed to load external module next/dist/compiled/next-server/app-page-turbo.runtime.prod.js: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/app/hidden-parent/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at externalRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:368:15)
  at [externals]/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js [external] (next/dist/compiled/next-server/app-page-turbo.runtime.prod.js, cjs) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:910)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/module.compiled.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:1305)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:2:21374)
  > Build error occurred
  Error: Failed to collect page data for /hidden-parent
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Static Image Component Tests › production mode › should use height prop to adjust both width and height

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   ▲ Next.js 15.2.0-canary.16 (Turbopack)

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Building (0/60) ...
   Building (15/60) 
   Building (30/60) 
   Building (45/60) 
 ✓ Building (60/60)
 ⚠ Turbopack build collected 1 warnings:
Page: {"type":"app","side":"server","page":"/static-img/page"}
./test/integration/next-image-new/app-dir/public/test.avif
AVIF image not supported
This version of Turbopack does not support AVIF images, will emit without optimization or encoding


 ✓ Compiled successfully in 4.5s
   Checking validity of types ...
   Collecting page data ...
Error: Failed to load external module next/dist/compiled/next-server/app-page-turbo.runtime.prod.js: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/app/hidden-parent/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at externalRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:368:15)
  at [externals]/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js [external] (next/dist/compiled/next-server/app-page-turbo.runtime.prod.js, cjs) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:910)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/module.compiled.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:1305)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:2:21374)
  > Build error occurred
  Error: Failed to collect page data for /hidden-parent
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Static Image Component Tests › production mode › should use width prop to adjust both width and height

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   ▲ Next.js 15.2.0-canary.16 (Turbopack)

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Building (0/60) ...
   Building (15/60) 
   Building (30/60) 
   Building (45/60) 
 ✓ Building (60/60)
 ⚠ Turbopack build collected 1 warnings:
Page: {"type":"app","side":"server","page":"/static-img/page"}
./test/integration/next-image-new/app-dir/public/test.avif
AVIF image not supported
This version of Turbopack does not support AVIF images, will emit without optimization or encoding


 ✓ Compiled successfully in 4.5s
   Checking validity of types ...
   Collecting page data ...
Error: Failed to load external module next/dist/compiled/next-server/app-page-turbo.runtime.prod.js: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/app/hidden-parent/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at externalRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:368:15)
  at [externals]/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js [external] (next/dist/compiled/next-server/app-page-turbo.runtime.prod.js, cjs) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:910)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/module.compiled.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:1305)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:2:21374)
  > Build error occurred
  Error: Failed to collect page data for /hidden-parent
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Static Image Component Tests › production mode › should add a data URL placeholder to an image

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   ▲ Next.js 15.2.0-canary.16 (Turbopack)

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Building (0/60) ...
   Building (15/60) 
   Building (30/60) 
   Building (45/60) 
 ✓ Building (60/60)
 ⚠ Turbopack build collected 1 warnings:
Page: {"type":"app","side":"server","page":"/static-img/page"}
./test/integration/next-image-new/app-dir/public/test.avif
AVIF image not supported
This version of Turbopack does not support AVIF images, will emit without optimization or encoding


 ✓ Compiled successfully in 4.5s
   Checking validity of types ...
   Collecting page data ...
Error: Failed to load external module next/dist/compiled/next-server/app-page-turbo.runtime.prod.js: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/app/hidden-parent/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at externalRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:368:15)
  at [externals]/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js [external] (next/dist/compiled/next-server/app-page-turbo.runtime.prod.js, cjs) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:910)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/module.compiled.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:1305)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:2:21374)
  > Build error occurred
  Error: Failed to collect page data for /hidden-parent
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Static Image Component Tests › production mode › should add a blur placeholder a statically imported jpg

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   ▲ Next.js 15.2.0-canary.16 (Turbopack)

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Building (0/60) ...
   Building (15/60) 
   Building (30/60) 
   Building (45/60) 
 ✓ Building (60/60)
 ⚠ Turbopack build collected 1 warnings:
Page: {"type":"app","side":"server","page":"/static-img/page"}
./test/integration/next-image-new/app-dir/public/test.avif
AVIF image not supported
This version of Turbopack does not support AVIF images, will emit without optimization or encoding


 ✓ Compiled successfully in 4.5s
   Checking validity of types ...
   Collecting page data ...
Error: Failed to load external module next/dist/compiled/next-server/app-page-turbo.runtime.prod.js: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/app/hidden-parent/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at externalRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:368:15)
  at [externals]/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js [external] (next/dist/compiled/next-server/app-page-turbo.runtime.prod.js, cjs) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:910)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/module.compiled.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:1305)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:2:21374)
  > Build error occurred
  Error: Failed to collect page data for /hidden-parent
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Static Image Component Tests › production mode › should add a blur placeholder a statically imported png

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   ▲ Next.js 15.2.0-canary.16 (Turbopack)

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Building (0/60) ...
   Building (15/60) 
   Building (30/60) 
   Building (45/60) 
 ✓ Building (60/60)
 ⚠ Turbopack build collected 1 warnings:
Page: {"type":"app","side":"server","page":"/static-img/page"}
./test/integration/next-image-new/app-dir/public/test.avif
AVIF image not supported
This version of Turbopack does not support AVIF images, will emit without optimization or encoding


 ✓ Compiled successfully in 4.5s
   Checking validity of types ...
   Collecting page data ...
Error: Failed to load external module next/dist/compiled/next-server/app-page-turbo.runtime.prod.js: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/app/hidden-parent/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at externalRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:368:15)
  at [externals]/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js [external] (next/dist/compiled/next-server/app-page-turbo.runtime.prod.js, cjs) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:910)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/module.compiled.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:1305)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:2:21374)
  > Build error occurred
  Error: Failed to collect page data for /hidden-parent
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Static Image Component Tests › production mode › should add a blur placeholder a statically imported png with fill

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   ▲ Next.js 15.2.0-canary.16 (Turbopack)

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Building (0/60) ...
   Building (15/60) 
   Building (30/60) 
   Building (45/60) 
 ✓ Building (60/60)
 ⚠ Turbopack build collected 1 warnings:
Page: {"type":"app","side":"server","page":"/static-img/page"}
./test/integration/next-image-new/app-dir/public/test.avif
AVIF image not supported
This version of Turbopack does not support AVIF images, will emit without optimization or encoding


 ✓ Compiled successfully in 4.5s
   Checking validity of types ...
   Collecting page data ...
Error: Failed to load external module next/dist/compiled/next-server/app-page-turbo.runtime.prod.js: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/app/hidden-parent/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at externalRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:368:15)
  at [externals]/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js [external] (next/dist/compiled/next-server/app-page-turbo.runtime.prod.js, cjs) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:910)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/module.compiled.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:1305)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:2:21374)
  > Build error occurred
  Error: Failed to collect page data for /hidden-parent
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Static Image Component Tests › production mode › should add placeholder with blurDataURL and fill

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   ▲ Next.js 15.2.0-canary.16 (Turbopack)

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Building (0/60) ...
   Building (15/60) 
   Building (30/60) 
   Building (45/60) 
 ✓ Building (60/60)
 ⚠ Turbopack build collected 1 warnings:
Page: {"type":"app","side":"server","page":"/static-img/page"}
./test/integration/next-image-new/app-dir/public/test.avif
AVIF image not supported
This version of Turbopack does not support AVIF images, will emit without optimization or encoding


 ✓ Compiled successfully in 4.5s
   Checking validity of types ...
   Collecting page data ...
Error: Failed to load external module next/dist/compiled/next-server/app-page-turbo.runtime.prod.js: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/app/hidden-parent/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at externalRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:368:15)
  at [externals]/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js [external] (next/dist/compiled/next-server/app-page-turbo.runtime.prod.js, cjs) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:910)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/module.compiled.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:1305)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:2:21374)
  > Build error occurred
  Error: Failed to collect page data for /hidden-parent
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Static Image Component Tests › production mode › should add placeholder even when blurDataURL aspect ratio does not match width/height ratio

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   ▲ Next.js 15.2.0-canary.16 (Turbopack)

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Building (0/60) ...
   Building (15/60) 
   Building (30/60) 
   Building (45/60) 
 ✓ Building (60/60)
 ⚠ Turbopack build collected 1 warnings:
Page: {"type":"app","side":"server","page":"/static-img/page"}
./test/integration/next-image-new/app-dir/public/test.avif
AVIF image not supported
This version of Turbopack does not support AVIF images, will emit without optimization or encoding


 ✓ Compiled successfully in 4.5s
   Checking validity of types ...
   Collecting page data ...
Error: Failed to load external module next/dist/compiled/next-server/app-page-turbo.runtime.prod.js: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/app/hidden-parent/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at externalRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:368:15)
  at [externals]/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js [external] (next/dist/compiled/next-server/app-page-turbo.runtime.prod.js, cjs) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:910)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/module.compiled.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:1305)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:2:21374)
  > Build error occurred
  Error: Failed to collect page data for /hidden-parent
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Static Image Component Tests › production mode › should load direct imported image

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   ▲ Next.js 15.2.0-canary.16 (Turbopack)

   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/next.config.js
   Building (0/60) ...
   Building (15/60) 
   Building (30/60) 
   Building (45/60) 
 ✓ Building (60/60)
 ⚠ Turbopack build collected 1 warnings:
Page: {"type":"app","side":"server","page":"/static-img/page"}
./test/integration/next-image-new/app-dir/public/test.avif
AVIF image not supported
This version of Turbopack does not support AVIF images, will emit without optimization or encoding


 ✓ Compiled successfully in 4.5s
   Checking validity of types ...
   Collecting page data ...
Error: Failed to load external module next/dist/compiled/next-server/app-page-turbo.runtime.prod.js: Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
Require stack:
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir/.next/server/app/hidden-parent/page.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/worker.js
- /root/actions-runner/_work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js

  at externalRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:368:15)
  at [externals]/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js [external] (next/dist/compiled/next-server/app-page-turbo.runtime.prod.js, cjs) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:910)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/module.compiled.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:1:1305)
  at instantiateModule (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[turbopack]_runtime.js:147:20)
  at [project]/packages/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js [app-rsc] (ecmascript) (../../../test/integration/next-image-new/app-dir/.next/server/chunks/ssr/[root of the server]__d4031c._.js:2:21374)
  > Build error occurred
  Error: Failed to collect page data for /hidden-parent
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

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

pnpm test test/integration/next-image-new/app-dir-image-from-node-modules/test/index.test.ts (turbopack)

  • Image Component from node_modules development mode > should apply image config for node_modules
Expand output

● Image Component from node_modules development mode › should apply image config for node_modules

thrown: "Exceeded timeout of 60000 ms for a test.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

  15 |
  16 | function runTests() {
> 17 |   it('should apply image config for node_modules', async () => {
     |   ^
  18 |     const browser = await webdriver(appPort, '/')
  19 |     const src = await browser
  20 |       .elementById('image-from-node-modules')

  at it (integration/next-image-new/app-dir-image-from-node-modules/test/index.test.ts:17:3)
  at runTests (integration/next-image-new/app-dir-image-from-node-modules/test/index.test.ts:58:3)
  at Object.describe (integration/next-image-new/app-dir-image-from-node-modules/test/index.test.ts:49:1)

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

pnpm test test/integration/app-dir-export/test/dynamicpage-prod.test.ts

  • app dir - with output export - dynamic api route prod > production mode > should work in prod with dynamicPage undefined
  • app dir - with output export - dynamic api route prod > production mode > should work in prod with dynamicPage 'error'
  • app dir - with output export - dynamic api route prod > production mode > should work in prod with dynamicPage 'force-static'
  • app dir - with output export - dynamic api route prod > production mode > should work in prod with dynamicPage 'force-dynamic'
Expand output

● app dir - with output export - dynamic api route prod › production mode › should work in prod with dynamicPage undefined

thrown: "Exceeded timeout of 60000 ms for a test.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

  14 |             'Page with `dynamic = "force-dynamic"` couldn\'t be exported. `output: "export"` requires all pages be renderable statically',
  15 |         },
> 16 |       ])(
     |        ^
  17 |         'should work in prod with dynamicPage $dynamicPage',
  18 |         async ({ dynamicPage, expectedErrMsg }) => {
  19 |           await runTests({ isDev: false, dynamicPage, expectedErrMsg })

  at ../node_modules/.pnpm/jest-each@29.7.0/node_modules/jest-each/build/bind.js:47:15
      at Array.forEach (<anonymous>)
  at integration/app-dir-export/test/dynamicpage-prod.test.ts:16:8
  at integration/app-dir-export/test/dynamicpage-prod.test.ts:4:56
  at Object.describe (integration/app-dir-export/test/dynamicpage-prod.test.ts:3:1)

● app dir - with output export - dynamic api route prod › production mode › should work in prod with dynamicPage 'error'

Failed to replace content.

Pattern: const dynamic = 'force-static'

Content: import Link from 'next/link'

export const dynamic = undefined

export function generateStaticParams() {
  return [{ slug: 'first' }, { slug: 'second' }]
}

export default async function Page(props) {
  const params = await props.params
  return (
    <main>
      <h1>{params.slug}</h1>
      <ul>
        <li>
          <Link href="/another">Visit another page</Link>
        </li>
      </ul>
    </main>
  )
}

  764 |     } else if (typeof pattern === 'string') {
  765 |       if (!currentContent.includes(pattern)) {
> 766 |         throw new Error(
      |               ^
  767 |           `Failed to replace content.\n\nPattern: ${pattern}\n\nContent: ${currentContent}`
  768 |         )
  769 |       }

  at File.replace (lib/next-test-utils.ts:766:15)
  at replace (integration/app-dir-export/test/utils.ts:129:14)
  at integration/app-dir-export/test/dynamicpage-prod.test.ts:19:25

● app dir - with output export - dynamic api route prod › production mode › should work in prod with dynamicPage 'force-static'

Failed to replace content.

Pattern: const dynamic = 'force-static'

Content: import Link from 'next/link'

export const dynamic = undefined

export function generateStaticParams() {
  return [{ slug: 'first' }, { slug: 'second' }]
}

export default async function Page(props) {
  const params = await props.params
  return (
    <main>
      <h1>{params.slug}</h1>
      <ul>
        <li>
          <Link href="/another">Visit another page</Link>
        </li>
      </ul>
    </main>
  )
}

  764 |     } else if (typeof pattern === 'string') {
  765 |       if (!currentContent.includes(pattern)) {
> 766 |         throw new Error(
      |               ^
  767 |           `Failed to replace content.\n\nPattern: ${pattern}\n\nContent: ${currentContent}`
  768 |         )
  769 |       }

  at File.replace (lib/next-test-utils.ts:766:15)
  at replace (integration/app-dir-export/test/utils.ts:129:14)
  at integration/app-dir-export/test/dynamicpage-prod.test.ts:19:25

● app dir - with output export - dynamic api route prod › production mode › should work in prod with dynamicPage 'force-dynamic'

Failed to replace content.

Pattern: const dynamic = 'force-static'

Content: import Link from 'next/link'

export const dynamic = undefined

export function generateStaticParams() {
  return [{ slug: 'first' }, { slug: 'second' }]
}

export default async function Page(props) {
  const params = await props.params
  return (
    <main>
      <h1>{params.slug}</h1>
      <ul>
        <li>
          <Link href="/another">Visit another page</Link>
        </li>
      </ul>
    </main>
  )
}

  764 |     } else if (typeof pattern === 'string') {
  765 |       if (!currentContent.includes(pattern)) {
> 766 |         throw new Error(
      |               ^
  767 |           `Failed to replace content.\n\nPattern: ${pattern}\n\nContent: ${currentContent}`
  768 |         )
  769 |       }

  at File.replace (lib/next-test-utils.ts:766:15)
  at replace (integration/app-dir-export/test/utils.ts:129:14)
  at integration/app-dir-export/test/dynamicpage-prod.test.ts:19:25

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

pnpm test test/integration/app-dir-export/test/trailing-slash-dev.test.ts

  • app dir - with output export - trailing slash dev > development mode > should work in dev with trailingSlash 'false'
  • app dir - with output export - trailing slash dev > development mode > should work in dev with trailingSlash 'true'
Expand output

● app dir - with output export - trailing slash dev › development mode › should work in dev with trailingSlash 'false'

TIMED OUT: Home

Server Error

undefined

  731 |
  732 |   if (hardError) {
> 733 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |           ^
  734 |   }
  735 |   return false
  736 | }

  at check (lib/next-test-utils.ts:733:11)
  at runTests (integration/app-dir-export/test/utils.ts:190:7)
  at integration/app-dir-export/test/trailing-slash-dev.test.ts:10:11

● app dir - with output export - trailing slash dev › development mode › should work in dev with trailingSlash 'true'

TIMED OUT: Home

Server Error

undefined

  731 |
  732 |   if (hardError) {
> 733 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |           ^
  734 |   }
  735 |   return false
  736 | }

  at check (lib/next-test-utils.ts:733:11)
  at runTests (integration/app-dir-export/test/utils.ts:190:7)
  at integration/app-dir-export/test/trailing-slash-dev.test.ts:10:11

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

pnpm test test/integration/link-ref-app/test/index.test.js (turbopack)

  • Invalid hrefs > development mode > should not have a race condition with a click handler
  • Invalid hrefs > development mode > should not show error for function component with forwardRef
  • Invalid hrefs > development mode > should not show error for class component as child of next/link
  • Invalid hrefs > development mode > should handle child ref with React.createRef
  • Invalid hrefs > development mode > should handle child ref that is a function
  • Invalid hrefs > development mode > should handle child ref that is a function that returns a cleanup function
Expand output

● Invalid hrefs › development mode › should not have a race condition with a click handler

thrown: "Exceeded timeout of 60000 ms for a test.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

  61 | function runCommonTests() {
  62 |   // See https://github.com/vercel/next.js/issues/18437
> 63 |   it('should not have a race condition with a click handler', async () => {
     |   ^
  64 |     const browser = await webdriver(appPort, '/click-away-race-condition')
  65 |     await browser.elementByCss('#click-me').click()
  66 |     await browser.waitForElementByCss('#the-menu')

  at it (integration/link-ref-app/test/index.test.js:63:3)
  at runCommonTests (integration/link-ref-app/test/index.test.js:80:7)
  at integration/link-ref-app/test/index.test.js:71:58
  at Object.describe (integration/link-ref-app/test/index.test.js:70:1)

● Invalid hrefs › development mode › should not show error for function component with forwardRef

expect(received).toEqual(expected) // deep equality

Expected: []
Received: undefined

  30 |   await waitFor(1000)
  31 |   const errors = await browser.eval(`window.caughtErrors`)
> 32 |   expect(errors).toEqual([])
     |                  ^
  33 |   await browser.close()
  34 | }
  35 |

  at toEqual (integration/link-ref-app/test/index.test.js:32:18)
  at Object.<anonymous> (integration/link-ref-app/test/index.test.js:83:9)

● Invalid hrefs › development mode › should not show error for class component as child of next/link

expect(received).toEqual(expected) // deep equality

Expected: []
Received: undefined

  30 |   await waitFor(1000)
  31 |   const errors = await browser.eval(`window.caughtErrors`)
> 32 |   expect(errors).toEqual([])
     |                  ^
  33 |   await browser.close()
  34 | }
  35 |

  at toEqual (integration/link-ref-app/test/index.test.js:32:18)
  at Object.<anonymous> (integration/link-ref-app/test/index.test.js:87:9)

● Invalid hrefs › development mode › should handle child ref with React.createRef

expect(received).toEqual(expected) // deep equality

Expected: []
Received: undefined

  30 |   await waitFor(1000)
  31 |   const errors = await browser.eval(`window.caughtErrors`)
> 32 |   expect(errors).toEqual([])
     |                  ^
  33 |   await browser.close()
  34 | }
  35 |

  at toEqual (integration/link-ref-app/test/index.test.js:32:18)
  at Object.<anonymous> (integration/link-ref-app/test/index.test.js:91:9)

● Invalid hrefs › development mode › should handle child ref that is a function

expect(received).toEqual(expected) // deep equality

Expected: []
Received: undefined

  30 |   await waitFor(1000)
  31 |   const errors = await browser.eval(`window.caughtErrors`)
> 32 |   expect(errors).toEqual([])
     |                  ^
  33 |   await browser.close()
  34 | }
  35 |

  at toEqual (integration/link-ref-app/test/index.test.js:32:18)
  at Object.<anonymous> (integration/link-ref-app/test/index.test.js:95:9)

● Invalid hrefs › development mode › should handle child ref that is a function that returns a cleanup function

expect(received).toEqual(expected) // deep equality

Expected: []
Received: undefined

  30 |   await waitFor(1000)
  31 |   const errors = await browser.eval(`window.caughtErrors`)
> 32 |   expect(errors).toEqual([])
     |                  ^
  33 |   await browser.close()
  34 | }
  35 |

  at toEqual (integration/link-ref-app/test/index.test.js:32:18)
  at Object.<anonymous> (integration/link-ref-app/test/index.test.js:99:9)

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

@mischnic mischnic closed this Jan 20, 2025
@mischnic mischnic deleted the revert-75010-sokra/production-chunking branch January 20, 2025 12:27
@github-actions github-actions bot added the locked label Feb 4, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
created-by: Turbopack team PRs by the Turbopack team. locked Turbopack Related to Turbopack with Next.js.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants