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

[Turbopack] enable production chunking for CSS too #75049

Draft
wants to merge 4 commits into
base: canary
Choose a base branch
from

Conversation

sokra
Copy link
Member

@sokra sokra commented Jan 17, 2025

What?

Enable the ecmascript production chunking for CSS too. That is not fully correct, but a bit better than the current state.

Copy link
Member Author

sokra commented Jan 17, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ijjk
Copy link
Member

ijjk commented Jan 17, 2025

Stats from current PR

Default Build (Increase detected ⚠️)
General
vercel/next.js canary vercel/next.js sokra/css-production-chunking Change
buildDuration 17.2s 15.4s N/A
buildDurationCached 14.4s 12.2s N/A
nodeModulesSize 418 MB 418 MB N/A
nextStartRea..uration (ms) 418ms 420ms N/A
Client Bundles (main, webpack)
vercel/next.js canary vercel/next.js sokra/css-production-chunking Change
5306-HASH.js gzip 54 kB 54 kB N/A
8276.HASH.js gzip 169 B 168 B N/A
8377-HASH.js gzip 5.44 kB 5.44 kB N/A
bccd1874-HASH.js gzip 52.9 kB 52.9 kB
framework-HASH.js gzip 57.5 kB 57.5 kB N/A
main-app-HASH.js gzip 241 B 242 B N/A
main-HASH.js gzip 34.4 kB 34.4 kB N/A
webpack-HASH.js gzip 1.71 kB 1.71 kB N/A
Overall change 52.9 kB 52.9 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary vercel/next.js sokra/css-production-chunking Change
polyfills-HASH.js gzip 39.4 kB 39.4 kB
Overall change 39.4 kB 39.4 kB
Client Pages
vercel/next.js canary vercel/next.js sokra/css-production-chunking Change
_app-HASH.js gzip 193 B 193 B
_error-HASH.js gzip 193 B 193 B
amp-HASH.js gzip 512 B 510 B N/A
css-HASH.js gzip 343 B 342 B N/A
dynamic-HASH.js gzip 1.84 kB 1.84 kB
edge-ssr-HASH.js gzip 265 B 265 B
head-HASH.js gzip 363 B 362 B N/A
hooks-HASH.js gzip 393 B 392 B N/A
image-HASH.js gzip 4.57 kB 4.57 kB N/A
index-HASH.js gzip 268 B 268 B
link-HASH.js gzip 2.35 kB 2.34 kB N/A
routerDirect..HASH.js gzip 328 B 328 B
script-HASH.js gzip 397 B 397 B
withRouter-HASH.js gzip 323 B 326 B N/A
1afbb74e6ecf..834.css gzip 106 B 106 B
Overall change 3.59 kB 3.59 kB
Client Build Manifests
vercel/next.js canary vercel/next.js sokra/css-production-chunking Change
_buildManifest.js gzip 749 B 747 B N/A
Overall change 0 B 0 B
Rendered Page Sizes
vercel/next.js canary vercel/next.js sokra/css-production-chunking Change
index.html gzip 524 B 524 B
link.html gzip 539 B 536 B N/A
withRouter.html gzip 520 B 520 B
Overall change 1.04 kB 1.04 kB
Edge SSR bundle Size
vercel/next.js canary vercel/next.js sokra/css-production-chunking Change
edge-ssr.js gzip 129 kB 129 kB N/A
page.js gzip 208 kB 208 kB N/A
Overall change 0 B 0 B
Middleware size
vercel/next.js canary vercel/next.js sokra/css-production-chunking Change
middleware-b..fest.js gzip 670 B 667 B N/A
middleware-r..fest.js gzip 155 B 156 B N/A
middleware.js gzip 31.3 kB 31.3 kB N/A
edge-runtime..pack.js gzip 844 B 844 B
Overall change 844 B 844 B
Next Runtimes
vercel/next.js canary vercel/next.js sokra/css-production-chunking Change
274-experime...dev.js gzip 322 B 322 B
274.runtime.dev.js gzip 314 B 314 B
app-page-exp...dev.js gzip 375 kB 375 kB
app-page-exp..prod.js gzip 130 kB 130 kB
app-page-tur..prod.js gzip 143 kB 143 kB
app-page-tur..prod.js gzip 139 kB 139 kB
app-page.run...dev.js gzip 363 kB 363 kB
app-page.run..prod.js gzip 126 kB 126 kB
app-route-ex...dev.js gzip 37.6 kB 37.6 kB
app-route-ex..prod.js gzip 25.6 kB 25.6 kB
app-route-tu..prod.js gzip 25.6 kB 25.6 kB
app-route-tu..prod.js gzip 25.4 kB 25.4 kB
app-route.ru...dev.js gzip 39.2 kB 39.2 kB
app-route.ru..prod.js gzip 25.4 kB 25.4 kB
pages-api-tu..prod.js gzip 9.69 kB 9.69 kB
pages-api.ru...dev.js gzip 11.6 kB 11.6 kB
pages-api.ru..prod.js gzip 9.68 kB 9.68 kB
pages-turbo...prod.js gzip 21.9 kB 21.9 kB
pages.runtim...dev.js gzip 27.7 kB 27.7 kB
pages.runtim..prod.js gzip 21.9 kB 21.9 kB
server.runti..prod.js gzip 916 kB 916 kB
Overall change 2.47 MB 2.47 MB
build cache Overall increase ⚠️
vercel/next.js canary vercel/next.js sokra/css-production-chunking Change
0.pack gzip 2.1 MB 2.1 MB N/A
index.pack gzip 75 kB 75.2 kB ⚠️ +239 B
Overall change 75 kB 75.2 kB ⚠️ +239 B
Diff details
Diff for main-HASH.js

Diff too large to display

Commit: 524194d

@ijjk
Copy link
Member

ijjk commented Jan 17, 2025

Failing test suites

Commit: 524194d

__NEXT_EXPERIMENTAL_PPR=true pnpm test test/integration/app-dynamic-error/test/index.test.ts (PPR)

  • 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.
 ⚠ `experimental.ppr` has been defaulted to `true` because `__NEXT_EXPERIMENTAL_PPR` was set to `true` during testing.
 ⚠ `experimental.ppr` has been defaulted to `true` because `__NEXT_EXPERIMENTAL_PPR` was set to `true` during testing.
 ⚠ `experimental.ppr` has been defaulted to `true` because `__NEXT_EXPERIMENTAL_PPR` was set to `true` during testing.
 ⚠ `experimental.ppr` has been defaulted to `true` because `__NEXT_EXPERIMENTAL_PPR` was set to `true` during testing.
 ⚠ `experimental.ppr` has been defaulted to `true` because `__NEXT_EXPERIMENTAL_PPR` was set to `true` during testing.
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-experimental.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/app-dynamic-error/.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-experimental.runtime.prod.js:68:35122)
  at r (../dist/compiled/next-server/app-page-experimental.runtime.prod.js:124:57808)
  at <unknown> (../dist/compiled/next-server/app-page-experimental.runtime.prod.js:124:59578)
  at <unknown> (../dist/compiled/next-server/app-page-experimental.runtime.prod.js:134:3750) {
    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 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 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-dev-turbo test/development/app-dir/hmr-deleted-page/hmr-deleted-page.test.ts (turbopack)

  • 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.

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

  • dynamic = "error" in devmode > should show error overlay when dynamic is forced
Expand output

● dynamic = "error" in devmode › should show error overlay when dynamic is forced

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `dynamic = "error" in devmode should show error overlay when dynamic is forced 1`

- Snapshot  -  1
+ Received  + 16

- "[ Server ] Error: Route /server with `dynamic = "error"` couldn't be rendered statically because it used `cookies`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"
+ "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:
+ - /tmp/next-install-08216060b402a731a739dc69dc97f8c3c71713e0c3139e87b187421582cc9653/node_modules/.pnpm/next@file+..+next-repo-ff436a1f228727d34007f3457b0ea4a5f896b8c2036cd561c7bc62812d9ae1e6+packa_qnha2m6kzgddtyxlipaipfn3rq/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js
+ - /tmp/next-install-08216060b402a731a739dc69dc97f8c3c71713e0c3139e87b187421582cc9653/.next/server/chunks/ssr/[root of the server]__3c00be._.js
+ - /tmp/next-install-08216060b402a731a739dc69dc97f8c3c71713e0c3139e87b187421582cc9653/.next/server/chunks/ssr/[turbopack]_runtime.js
+ - /tmp/next-install-08216060b402a731a739dc69dc97f8c3c71713e0c3139e87b187421582cc9653/.next/server/app/server/page.js
+ - /tmp/next-install-08216060b402a731a739dc69dc97f8c3c71713e0c3139e87b187421582cc9653/node_modules/.pnpm/next@file+..+next-repo-ff436a1f228727d34007f3457b0ea4a5f896b8c2036cd561c7bc62812d9ae1e6+packa_qnha2m6kzgddtyxlipaipfn3rq/node_modules/next/dist/server/require.js
+ - /tmp/next-install-08216060b402a731a739dc69dc97f8c3c71713e0c3139e87b187421582cc9653/node_modules/.pnpm/next@file+..+next-repo-ff436a1f228727d34007f3457b0ea4a5f896b8c2036cd561c7bc62812d9ae1e6+packa_qnha2m6kzgddtyxlipaipfn3rq/node_modules/next/dist/server/load-components.js
+ - /tmp/next-install-08216060b402a731a739dc69dc97f8c3c71713e0c3139e87b187421582cc9653/node_modules/.pnpm/next@file+..+next-repo-ff436a1f228727d34007f3457b0ea4a5f896b8c2036cd561c7bc62812d9ae1e6+packa_qnha2m6kzgddtyxlipaipfn3rq/node_modules/next/dist/build/utils.js
+ - /tmp/next-install-08216060b402a731a739dc69dc97f8c3c71713e0c3139e87b187421582cc9653/node_modules/.pnpm/next@file+..+next-repo-ff436a1f228727d34007f3457b0ea4a5f896b8c2036cd561c7bc62812d9ae1e6+packa_qnha2m6kzgddtyxlipaipfn3rq/node_modules/next/dist/build/swc/options.js
+ - /tmp/next-install-08216060b402a731a739dc69dc97f8c3c71713e0c3139e87b187421582cc9653/node_modules/.pnpm/next@file+..+next-repo-ff436a1f228727d34007f3457b0ea4a5f896b8c2036cd561c7bc62812d9ae1e6+packa_qnha2m6kzgddtyxlipaipfn3rq/node_modules/next/dist/build/swc/index.js
+ - /tmp/next-install-08216060b402a731a739dc69dc97f8c3c71713e0c3139e87b187421582cc9653/node_modules/.pnpm/next@file+..+next-repo-ff436a1f228727d34007f3457b0ea4a5f896b8c2036cd561c7bc62812d9ae1e6+packa_qnha2m6kzgddtyxlipaipfn3rq/node_modules/next/dist/build/analysis/parse-module.js
+ - /tmp/next-install-08216060b402a731a739dc69dc97f8c3c71713e0c3139e87b187421582cc9653/node_modules/.pnpm/next@file+..+next-repo-ff436a1f228727d34007f3457b0ea4a5f896b8c2036cd561c7bc62812d9ae1e6+packa_qnha2m6kzgddtyxlipaipfn3rq/node_modules/next/dist/build/analysis/get-page-static-info.js
+ - /tmp/next-install-08216060b402a731a739dc69dc97f8c3c71713e0c3139e87b187421582cc9653/node_modules/.pnpm/next@file+..+next-repo-ff436a1f228727d34007f3457b0ea4a5f896b8c2036cd561c7bc62812d9ae1e6+packa_qnha2m6kzgddtyxlipaipfn3rq/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js
+ - /tmp/next-install-08216060b402a731a739dc69dc97f8c3c71713e0c3139e87b187421582cc9653/node_modules/.pnpm/next@file+..+next-repo-ff436a1f228727d34007f3457b0ea4a5f896b8c2036cd561c7bc62812d9ae1e6+packa_qnha2m6kzgddtyxlipaipfn3rq/node_modules/next/dist/server/lib/router-server.js
+ - /tmp/next-install-08216060b402a731a739dc69dc97f8c3c71713e0c3139e87b187421582cc9653/node_modules/.pnpm/next@file+..+next-repo-ff436a1f228727d34007f3457b0ea4a5f896b8c2036cd561c7bc62812d9ae1e6+packa_qnha2m6kzgddtyxlipaipfn3rq/node_modules/next/dist/server/lib/start-server.js"

  32 |     const { session } = sandbox
  33 |     await session.assertHasRedbox()
> 34 |     expect(await session.getRedboxDescription()).toMatchInlineSnapshot(
     |                                                  ^
  35 |       `"[ Server ] Error: Route /server with \`dynamic = "error"\` couldn't be rendered statically because it used \`cookies\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering"`
  36 |     )
  37 |   })

  at Object.toMatchInlineSnapshot (development/acceptance-app/dynamic-error.test.ts:34:50)

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

pnpm test-dev-turbo test/development/app-dir/hmr-asset-prefix-full-url/asset-prefix.test.ts (turbopack)

  • 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/hmr-shared-css/hmr-shared-css.test.ts (turbopack)

  • hmr-app-and-pages > should do HMR when app router and pages router have shared CSS
Expand output

● hmr-app-and-pages › should do HMR when app router and pages router have shared CSS

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

Expected: "rgb(255, 255, 255)"
Received: "rgba(0, 0, 0, 0)"

  13 |     expect(
  14 |       await browser.elementByCss('body').getComputedCss('background-color')
> 15 |     ).toEqual('rgb(255, 255, 255)')
     |       ^
  16 |
  17 |     await next.patchFile('app/styles.css', (content) =>
  18 |       content.replace(

  at Object.toEqual (development/app-dir/hmr-shared-css/hmr-shared-css.test.ts:15:7)

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

pnpm test test/integration/build-trace-extra-entries-turbo/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-turbo/test/index.test.js:20:29)

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-start-turbo test/e2e/app-dir/app-simple-routes/app-simple-routes.test.ts (turbopack)

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

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

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-simple-routes › works with simple routes › renders a edge route

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-turbo test/e2e/app-dir/app-config-crossorigin/index.test.ts (turbopack)

  • app dir - crossOrigin config > skip in start mode
Expand output

● app dir - crossOrigin config › skip in start mode

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-turbo test/e2e/app-dir/asset-prefix-with-basepath/asset-prefix-with-basepath.test.ts (turbopack)

  • app-dir assetPrefix with basePath handling > should redirect route when requesting it directly
  • app-dir assetPrefix with basePath handling > should render link
  • app-dir assetPrefix with basePath handling > should redirect route when requesting it directly by browser
  • app-dir assetPrefix with basePath handling > should redirect route when clicking link
  • app-dir assetPrefix with basePath handling > bundles should return 200 on served assetPrefix
  • app-dir assetPrefix with basePath handling > rewrites > rewrites that do not start with assetPrefix should still work
  • app-dir assetPrefix with basePath handling > rewrites > should respect rewrites that start with assetPrefix
Expand output

● app-dir assetPrefix with basePath handling › should redirect route when requesting it directly

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 assetPrefix with basePath handling › should render link

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 assetPrefix with basePath handling › should redirect route when requesting it directly by browser

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 assetPrefix with basePath handling › should redirect route when clicking link

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 assetPrefix with basePath handling › bundles should return 200 on served assetPrefix

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 assetPrefix with basePath handling › rewrites › rewrites that do not start with assetPrefix should still work

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 assetPrefix with basePath handling › rewrites › should respect rewrites that start with assetPrefix

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/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-start-turbo test/e2e/app-dir/app-client-cache/client-cache.original.test.ts (turbopack)

  • app dir client cache semantics (30s/5min) > should seed the prefetch cache with the fetched page data
  • app dir client cache semantics (30s/5min) > should renew the initial seeded data after expiration time
  • app dir client cache semantics (30s/5min) > prefetch={false} > should not prefetch the page at all
  • app dir client cache semantics (30s/5min) > prefetch={false} > should re-use the cache only for 30 seconds
  • app dir client cache semantics (30s/5min) > prefetch={true} > should prefetch the full page
  • app dir client cache semantics (30s/5min) > prefetch={true} > should re-use the cache for the full page, only for 5 mins
  • app dir client cache semantics (30s/5min) > prefetch={true} > should prefetch again after 5 mins if the link is visible again
  • app dir client cache semantics (30s/5min) > prefetch={undefined} - default > should prefetch partially a dynamic page
  • app dir client cache semantics (30s/5min) > prefetch={undefined} - default > should re-use the full cache for only 30 seconds
  • app dir client cache semantics (30s/5min) > prefetch={undefined} - default > should renew the 30s cache once the data is revalidated
  • app dir client cache semantics (30s/5min) > prefetch={undefined} - default > should refetch below the fold after 30 seconds
  • app dir client cache semantics (30s/5min) > prefetch={undefined} - default > should refetch the full page after 5 mins
  • app dir client cache semantics (30s/5min) > prefetch={undefined} - default > should respect a loading boundary that returns null
Expand output

● app dir client cache semantics (30s/5min) › prefetch={true} › should prefetch the full 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 client cache semantics (30s/5min) › prefetch={true} › should re-use the cache for the full page, only for 5 mins

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 client cache semantics (30s/5min) › prefetch={true} › should prefetch again after 5 mins if the link is visible again

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 client cache semantics (30s/5min) › prefetch={false} › should not prefetch the page at all

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 client cache semantics (30s/5min) › prefetch={false} › should re-use the cache only for 30 seconds

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 client cache semantics (30s/5min) › prefetch={undefined} - default › should prefetch partially a dynamic 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 client cache semantics (30s/5min) › prefetch={undefined} - default › should re-use the full cache for only 30 seconds

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 client cache semantics (30s/5min) › prefetch={undefined} - default › should renew the 30s cache once the data is revalidated

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 client cache semantics (30s/5min) › prefetch={undefined} - default › should refetch below the fold after 30 seconds

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 client cache semantics (30s/5min) › prefetch={undefined} - default › should refetch the full page after 5 mins

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 client cache semantics (30s/5min) › prefetch={undefined} - default › should respect a loading boundary that returns null

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 client cache semantics (30s/5min) › should seed the prefetch cache with the fetched page data

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 client cache semantics (30s/5min) › should renew the initial seeded data after expiration time

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-turbo test/e2e/app-dir/app-validation/validation.test.ts (turbopack)

  • app-dir action disallowed origins > should error if x-forwarded-host does not match the origin
Expand output

● app-dir action disallowed origins › should error if x-forwarded-host does not match the 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-start-turbo test/e2e/app-dir/app-compilation/index.test.ts (turbopack)

  • 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-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 test/integration/app-dir-export/test/dynamic-missing-gsp-dev.test.ts (turbopack)

  • app dir - with output export - dynamic missing gsp dev > development mode > should error when dynamic route is missing generateStaticParams
  • app dir - with output export - dynamic missing gsp dev > development mode > should error when dynamic route is set to true
Expand output

● app dir - with output export - dynamic missing gsp dev › development mode › should error when dynamic route is missing generateStaticParams

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

Expected substring: "Page \"/another/[slug]/page\" is missing exported function \"generateStaticParams()\", which is required with \"output: export\" config."
Received string:    "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-dir-export/.next/server/chunks/ssr/[root of the server]__26111c._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/.next/server/app/another/[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/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.
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 |"

  180 |         const header = await getRedboxHeader(browser)
  181 |         const source = await getRedboxSource(browser)
> 182 |         expect(`${header}\n${source}`).toContain(expectedErrMsg)
      |                                        ^
  183 |       } else {
  184 |         await check(() => result.stderr, /error/i)
  185 |       }

  at toContain (integration/app-dir-export/test/utils.ts:182:40)
  at Object.<anonymous> (integration/app-dir-export/test/dynamic-missing-gsp-dev.test.ts:8:9)

● app dir - with output export - dynamic missing gsp dev › development mode › should error when dynamic route is set to true

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

Expected substring: "\"dynamicParams: true\" cannot be used with \"output: export\". See more info here: https://nextjs.org/docs/app/building-your-application/deploying/static-exports"
Received string:    "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-dir-export/.next/server/chunks/ssr/[root of the server]__26111c._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/.next/server/app/another/[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/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.
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 |"

  180 |         const header = await getRedboxHeader(browser)
  181 |         const source = await getRedboxSource(browser)
> 182 |         expect(`${header}\n${source}`).toContain(expectedErrMsg)
      |                                        ^
  183 |       } else {
  184 |         await check(() => result.stderr, /error/i)
  185 |       }

  at toContain (integration/app-dir-export/test/utils.ts:182:40)
  at Object.<anonymous> (integration/app-dir-export/test/dynamic-missing-gsp-dev.test.ts:18:9)

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 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/app-dir-export/test/start.test.ts

  • app dir - with output export (next start) > production mode > should error during next start with output export
  • app dir - with output export (next start) > production mode > should warn during next start with output standalone
Expand output

● app dir - with output export (next start) › production mode › should error during next start with output export

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/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/app-dir-export/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/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-route.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/.next/server/app/robots.txt/route.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 <unknown> (../dist/compiled/next-server/app-route.runtime.prod.js:14:10895)
  at <unknown> (../dist/compiled/next-server/app-route.runtime.prod.js:18:29895)
  at Object.<anonymous> (../dist/compiled/next-server/app-route.runtime.prod.js:18:29916) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  > Build error occurred
  Error: Failed to collect page data for /robots.txt
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● app dir - with output export (next start) › production mode › should warn during next start with output standalone

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/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/app-dir-export/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/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-route.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/.next/server/app/api/json/route.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 <unknown> (../dist/compiled/next-server/app-route.runtime.prod.js:14:10895)
  at <unknown> (../dist/compiled/next-server/app-route.runtime.prod.js:18:29895)
  at Object.<anonymous> (../dist/compiled/next-server/app-route.runtime.prod.js:18:29916) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  > Build error occurred
  Error: Failed to collect page data for /api/json
  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/export-default-map/test/index.test.js

  • Export with default map > production mode > should export with folder that has dot in name
  • Export with default map > production mode > should export an amp only page to clean path
  • Export with default map > production mode > should export hybrid amp page correctly
  • Export with default map > production mode > should export nested hybrid amp page correctly
  • Export with default map > production mode > should export nested hybrid amp page correctly with folder
  • Export with default map > production mode > should export hybrid index amp page correctly
Expand output

● Export with default map › production mode › should export with folder that has dot in name

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

   Checking validity of types ...
   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/export-default-map/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/export-default-map/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/export-default-map/next.config.js
 ✓ Compiled successfully
   Collecting page data ...
   Generating static pages (0/9) ...
   Generating static pages (2/9) 
Error occurred prerendering page "/just-amp". Read more: https://nextjs.org/docs/messages/prerender-error
AssertionError: Assertion failed: WebAssembly is uninitialized

  at new module$contents$goog$asserts_AssertionError (../evalmachine.<anonymous>:106:1695)
  at module$contents$goog$asserts_doAssertFailure (../evalmachine.<anonymous>:107:354)
  at goog.asserts.assertExists (../evalmachine.<anonymous>:109:142)
  at Object.module$contents$amp$validator_validateString [as validateString] (../evalmachine.<anonymous>:2663:108)
  at Validator.validateString (../packages/next/dist/compiled/amphtml-validator/index.js:1:20650)
  at validateAmp (../packages/next/dist/export/routes/pages.js:87:34)
  at async exportPagesPage (../packages/next/dist/export/routes/pages.js:104:13)
  at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:156:20)
  at async exportPage (../packages/next/dist/export/worker.js:345:18)
  Export encountered an error on /just-amp, exiting the build.
   ⨯ Static worker exited with code: 1 and signal: null
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Export with default map › production mode › should export an amp only page to clean path

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

   Checking validity of types ...
   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/export-default-map/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/export-default-map/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/export-default-map/next.config.js
 ✓ Compiled successfully
   Collecting page data ...
   Generating static pages (0/9) ...
   Generating static pages (2/9) 
Error occurred prerendering page "/just-amp". Read more: https://nextjs.org/docs/messages/prerender-error
AssertionError: Assertion failed: WebAssembly is uninitialized

  at new module$contents$goog$asserts_AssertionError (../evalmachine.<anonymous>:106:1695)
  at module$contents$goog$asserts_doAssertFailure (../evalmachine.<anonymous>:107:354)
  at goog.asserts.assertExists (../evalmachine.<anonymous>:109:142)
  at Object.module$contents$amp$validator_validateString [as validateString] (../evalmachine.<anonymous>:2663:108)
  at Validator.validateString (../packages/next/dist/compiled/amphtml-validator/index.js:1:20650)
  at validateAmp (../packages/next/dist/export/routes/pages.js:87:34)
  at async exportPagesPage (../packages/next/dist/export/routes/pages.js:104:13)
  at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:156:20)
  at async exportPage (../packages/next/dist/export/worker.js:345:18)
  Export encountered an error on /just-amp, exiting the build.
   ⨯ Static worker exited with code: 1 and signal: null
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Export with default map › production mode › should export hybrid amp page correctly

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

   Checking validity of types ...
   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/export-default-map/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/export-default-map/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/export-default-map/next.config.js
 ✓ Compiled successfully
   Collecting page data ...
   Generating static pages (0/9) ...
   Generating static pages (2/9) 
Error occurred prerendering page "/just-amp". Read more: https://nextjs.org/docs/messages/prerender-error
AssertionError: Assertion failed: WebAssembly is uninitialized

  at new module$contents$goog$asserts_AssertionError (../evalmachine.<anonymous>:106:1695)
  at module$contents$goog$asserts_doAssertFailure (../evalmachine.<anonymous>:107:354)
  at goog.asserts.assertExists (../evalmachine.<anonymous>:109:142)
  at Object.module$contents$amp$validator_validateString [as validateString] (../evalmachine.<anonymous>:2663:108)
  at Validator.validateString (../packages/next/dist/compiled/amphtml-validator/index.js:1:20650)
  at validateAmp (../packages/next/dist/export/routes/pages.js:87:34)
  at async exportPagesPage (../packages/next/dist/export/routes/pages.js:104:13)
  at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:156:20)
  at async exportPage (../packages/next/dist/export/worker.js:345:18)
  Export encountered an error on /just-amp, exiting the build.
   ⨯ Static worker exited with code: 1 and signal: null
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Export with default map › production mode › should export nested hybrid amp page correctly

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

   Checking validity of types ...
   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/export-default-map/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/export-default-map/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/export-default-map/next.config.js
 ✓ Compiled successfully
   Collecting page data ...
   Generating static pages (0/9) ...
   Generating static pages (2/9) 
Error occurred prerendering page "/just-amp". Read more: https://nextjs.org/docs/messages/prerender-error
AssertionError: Assertion failed: WebAssembly is uninitialized

  at new module$contents$goog$asserts_AssertionError (../evalmachine.<anonymous>:106:1695)
  at module$contents$goog$asserts_doAssertFailure (../evalmachine.<anonymous>:107:354)
  at goog.asserts.assertExists (../evalmachine.<anonymous>:109:142)
  at Object.module$contents$amp$validator_validateString [as validateString] (../evalmachine.<anonymous>:2663:108)
  at Validator.validateString (../packages/next/dist/compiled/amphtml-validator/index.js:1:20650)
  at validateAmp (../packages/next/dist/export/routes/pages.js:87:34)
  at async exportPagesPage (../packages/next/dist/export/routes/pages.js:104:13)
  at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:156:20)
  at async exportPage (../packages/next/dist/export/worker.js:345:18)
  Export encountered an error on /just-amp, exiting the build.
   ⨯ Static worker exited with code: 1 and signal: null
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Export with default map › production mode › should export nested hybrid amp page correctly with folder

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

   Checking validity of types ...
   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/export-default-map/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/export-default-map/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/export-default-map/next.config.js
 ✓ Compiled successfully
   Collecting page data ...
   Generating static pages (0/9) ...
   Generating static pages (2/9) 
Error occurred prerendering page "/just-amp". Read more: https://nextjs.org/docs/messages/prerender-error
AssertionError: Assertion failed: WebAssembly is uninitialized

  at new module$contents$goog$asserts_AssertionError (../evalmachine.<anonymous>:106:1695)
  at module$contents$goog$asserts_doAssertFailure (../evalmachine.<anonymous>:107:354)
  at goog.asserts.assertExists (../evalmachine.<anonymous>:109:142)
  at Object.module$contents$amp$validator_validateString [as validateString] (../evalmachine.<anonymous>:2663:108)
  at Validator.validateString (../packages/next/dist/compiled/amphtml-validator/index.js:1:20650)
  at validateAmp (../packages/next/dist/export/routes/pages.js:87:34)
  at async exportPagesPage (../packages/next/dist/export/routes/pages.js:104:13)
  at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:156:20)
  at async exportPage (../packages/next/dist/export/worker.js:345:18)
  Export encountered an error on /just-amp, exiting the build.
   ⨯ Static worker exited with code: 1 and signal: null
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● Export with default map › production mode › should export hybrid index amp page correctly

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

   Checking validity of types ...
   Creating an optimized production build ...
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/export-default-map/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/export-default-map/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/export-default-map/next.config.js
 ✓ Compiled successfully
   Collecting page data ...
   Generating static pages (0/9) ...
   Generating static pages (2/9) 
Error occurred prerendering page "/just-amp". Read more: https://nextjs.org/docs/messages/prerender-error
AssertionError: Assertion failed: WebAssembly is uninitialized

  at new module$contents$goog$asserts_AssertionError (../evalmachine.<anonymous>:106:1695)
  at module$contents$goog$asserts_doAssertFailure (../evalmachine.<anonymous>:107:354)
  at goog.asserts.assertExists (../evalmachine.<anonymous>:109:142)
  at Object.module$contents$amp$validator_validateString [as validateString] (../evalmachine.<anonymous>:2663:108)
  at Validator.validateString (../packages/next/dist/compiled/amphtml-validator/index.js:1:20650)
  at validateAmp (../packages/next/dist/export/routes/pages.js:87:34)
  at async exportPagesPage (../packages/next/dist/export/routes/pages.js:104:13)
  at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:156:20)
  at async exportPage (../packages/next/dist/export/worker.js:345:18)
  Export encountered an error on /just-amp, exiting the build.
   ⨯ Static worker exited with code: 1 and signal: null
  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/app-dir/dynamic-error-trace/index.test.ts

  • app dir - dynamic error trace > should show the error trace
Expand output

● app dir - dynamic error trace › should show the error trace

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

Expected: "app/lib.js (4:13) @ Foo·
  2 |
  3 | export function Foo() {
> 4 |   useHeaders()
    |             ^
  5 |   return 'foo'
  6 | }
  7 |"
Received: null

  39 |
  40 |     const codeframe = await getRedboxSource(browser)
> 41 |     expect(codeframe).toEqual(
     |                       ^
  42 |       outdent`
  43 |             app/lib.js (4:13) @ Foo
  44 |

  at Object.toEqual (development/app-dir/dynamic-error-trace/index.test.ts:41:23)

● app dir - dynamic error trace › should show the error trace

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `app dir - dynamic error trace should show the error trace 1`

- Snapshot  -  0
+ Received  + 22

+ next/dist/compiled/next-server/app-page.runtime.dev.js
+ file:///tmp/next-install-cf6eba9bff1ca6c27540bf4c726270a9d7da0cb6527fbb7d5a2a0d488253c517/.next/server/app/page.js
+ __webpack_require__
+ file:///tmp/next-install-cf6eba9bff1ca6c27540bf4c726270a9d7da0cb6527fbb7d5a2a0d488253c517/.next/server/webpack-runtime.js
+ ./node_modules/.pnpm/next@file+..+next-repo-a211e91c40f0bbb2c1e28d4113d00d909042d72ec9b62b843e3c2619fc7fa690+packa_x2qffahqk4gnerbndosumlzrey/node_modules/next/dist/server/route-modules/app-page/module.compiled.js?e6f1
+ file:///tmp/next-install-cf6eba9bff1ca6c27540bf4c726270a9d7da0cb6527fbb7d5a2a0d488253c517/.next/server/vendor-chunks/next@file+..+next-repo-a211e91c40f0bbb2c1e28d4113d00d909042d72ec9b62b843e3c2619fc7fa690+packa_x2qffahqk4gnerbndosumlzrey.js
+ __webpack_require__
+ file:///tmp/next-install-cf6eba9bff1ca6c27540bf4c726270a9d7da0cb6527fbb7d5a2a0d488253c517/.next/server/webpack-runtime.js
+ ./node_modules/.pnpm/next@file+..+next-repo-a211e91c40f0bbb2c1e28d4113d00d909042d72ec9b62b843e3c2619fc7fa690+packa_x2qffahqk4gnerbndosumlzrey/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js?name=app%2Fpage&page=%2Fpage&appPaths=%2Fpage&pagePath=private-next-app-dir%2Fpage.js&appDir=%2Ftmp%2Fnext-install-cf6eba9bff1ca6c27540bf4c726270a9d7da0cb6527fbb7d5a2a0d488253c517%2Fapp&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&rootDir=%2Ftmp%2Fnext-install-cf6eba9bff1ca6c27540bf4c726270a9d7da0cb6527fbb7d5a2a0d488253c517&isDev=true&tsconfigPath=tsconfig.json&basePath=&assetPrefix=&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D!
+ file:///tmp/next-install-cf6eba9bff1ca6c27540bf4c726270a9d7da0cb6527fbb7d5a2a0d488253c517/.next/server/app/page.js
+ __webpack_require__
+ file:///tmp/next-install-cf6eba9bff1ca6c27540bf4c726270a9d7da0cb6527fbb7d5a2a0d488253c517/.next/server/webpack-runtime.js
+ __webpack_exec__
+ file:///tmp/next-install-cf6eba9bff1ca6c27540bf4c726270a9d7da0cb6527fbb7d5a2a0d488253c517/.next/server/app/page.js
+ <unknown>
+ file:///tmp/next-install-cf6eba9bff1ca6c27540bf4c726270a9d7da0cb6527fbb7d5a2a0d488253c517/.next/server/app/page.js
+ __webpack_require__.X
+ file:///tmp/next-install-cf6eba9bff1ca6c27540bf4c726270a9d7da0cb6527fbb7d5a2a0d488253c517/.next/server/webpack-runtime.js
+ <unknown>
+ file:///tmp/next-install-cf6eba9bff1ca6c27540bf4c726270a9d7da0cb6527fbb7d5a2a0d488253c517/.next/server/app/page.js
+ Object.<anonymous>
+ file:///tmp/next-install-cf6eba9bff1ca6c27540bf4c726270a9d7da0cb6527fbb7d5a2a0d488253c517/.next/server/app/page.js

  36 |     // TODO: Show useful stack
  37 |     const normalizedStack = normalizeStackTrace(stackFramesContent)
> 38 |     expect(normalizedStack).toMatchInlineSnapshot(`""`)
     |                             ^
  39 |
  40 |     const codeframe = await getRedboxSource(browser)
  41 |     expect(codeframe).toEqual(

  at Object.toMatchInlineSnapshot (development/app-dir/dynamic-error-trace/index.test.ts:38:29)

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

pnpm test test/integration/app-dir-export/test/config.test.ts

  • app dir - with output export (next dev / next build) > production mode > should error when running next export
  • app dir - with output export (next dev / next build) > production mode > should correctly emit exported assets to config.distDir
Expand output

● app dir - with output export (next dev / next build) › production mode › should error when running next export

command failed with code 1 signal null
 ⚠ Linting is disabled.
   No config file found
   No config file found
   ▲ Next.js 15.2.0-canary.16

   Creating an optimized production build ...
   No config file found
   No config file found
   No config file found
 ✓ 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-route.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/.next/server/app/robots.txt/route.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 <unknown> (../dist/compiled/next-server/app-route.runtime.prod.js:14:10895)
  at <unknown> (../dist/compiled/next-server/app-route.runtime.prod.js:18:29895)
  at Object.<anonymous> (../dist/compiled/next-server/app-route.runtime.prod.js:18:29916) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  > Build error occurred
  Error: Failed to collect page data for /robots.txt
  at <unknown> (../dist/build/utils.js:980:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:310:11)

● app dir - with output export (next dev / next build) › production mode › should correctly emit exported assets to config.distDir

command failed with code 1 signal null
 ⚠ Linting is disabled.
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/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/app-dir-export/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/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-route.runtime.prod.js
- /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export/.next/server/app/favicon.ico/route.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 <unknown> (../dist/compiled/next-server/app-route.runtime.prod.js:14:10895)
  at <unknown> (../dist/compiled/next-server/app-route.runtime.prod.js:18:29895)
  at Object.<anonymous> (../dist/compiled/next-server/app-route.runtime.prod.js:18:29916) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  > Build error occurred
  Error: Failed to collect page data for /favicon.ico
  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-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-dev test/development/app-dir/ssr-only-error/ssr-only-error.test.ts

  • ssr-only-error > should show ssr only error in error overlay
Expand output

● ssr-only-error › should show ssr only error in error overlay

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `ssr-only-error should show ssr only error in error overlay 1`

- Snapshot  - 10
+ Received  + 15

  {
-   "description": "Error: SSR only error",
-   "source": "app/page.tsx (5:11) @ Page
-
-   3 | export default function Page() {
-   4 |   if (typeof window === 'undefined') {
- > 5 |     throw new Error('SSR only error')
-     |           ^
-   6 |   }
-   7 |   return <p>hello world</p>
-   8 | }",
+   "description": "Error: Cannot find module 'next\dist\server\app-render\work-async-storage.external.js'
+ Require stack:
+ - /tmp/next-install-f6cbda6ee7aad6b50752121efec2fe859473e69fa05224a5a922c89b6d703547/node_modules/.pnpm/next@file+..+next-repo-e5a854a8755fe7ef93de0e5643f957278dbb2e645d91501cff587a8de9bca252+packa_u5u5bf6tjtycg454y2qle46oku/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js
+ - /tmp/next-install-f6cbda6ee7aad6b50752121efec2fe859473e69fa05224a5a922c89b6d703547/.next/server/app/page.js
+ - /tmp/next-install-f6cbda6ee7aad6b50752121efec2fe859473e69fa05224a5a922c89b6d703547/node_modules/.pnpm/next@file+..+next-repo-e5a854a8755fe7ef93de0e5643f957278dbb2e645d91501cff587a8de9bca252+packa_u5u5bf6tjtycg454y2qle46oku/node_modules/next/dist/server/require.js
+ - /tmp/next-install-f6cbda6ee7aad6b50752121efec2fe859473e69fa05224a5a922c89b6d703547/node_modules/.pnpm/next@file+..+next-repo-e5a854a8755fe7ef93de0e5643f957278dbb2e645d91501cff587a8de9bca252+packa_u5u5bf6tjtycg454y2qle46oku/node_modules/next/dist/server/load-components.js
+ - /tmp/next-install-f6cbda6ee7aad6b50752121efec2fe859473e69fa05224a5a922c89b6d703547/node_modules/.pnpm/next@file+..+next-repo-e5a854a8755fe7ef93de0e5643f957278dbb2e645d91501cff587a8de9bca252+packa_u5u5bf6tjtycg454y2qle46oku/node_modules/next/dist/build/utils.js
+ - /tmp/next-install-f6cbda6ee7aad6b50752121efec2fe859473e69fa05224a5a922c89b6d703547/node_modules/.pnpm/next@file+..+next-repo-e5a854a8755fe7ef93de0e5643f957278dbb2e645d91501cff587a8de9bca252+packa_u5u5bf6tjtycg454y2qle46oku/node_modules/next/dist/build/swc/options.js
+ - /tmp/next-install-f6cbda6ee7aad6b50752121efec2fe859473e69fa05224a5a922c89b6d703547/node_modules/.pnpm/next@file+..+next-repo-e5a854a8755fe7ef93de0e5643f957278dbb2e645d91501cff587a8de9bca252+packa_u5u5bf6tjtycg454y2qle46oku/node_modules/next/dist/build/swc/index.js
+ - /tmp/next-install-f6cbda6ee7aad6b50752121efec2fe859473e69fa05224a5a922c89b6d703547/node_modules/.pnpm/next@file+..+next-repo-e5a854a8755fe7ef93de0e5643f957278dbb2e645d91501cff587a8de9bca252+packa_u5u5bf6tjtycg454y2qle46oku/node_modules/next/dist/build/analysis/parse-module.js
+ - /tmp/next-install-f6cbda6ee7aad6b50752121efec2fe859473e69fa05224a5a922c89b6d703547/node_modules/.pnpm/next@file+..+next-repo-e5a854a8755fe7ef93de0e5643f957278dbb2e645d91501cff587a8de9bca252+packa_u5u5bf6tjtycg454y2qle46oku/node_modules/next/dist/build/analysis/get-page-static-info.js
+ - /tmp/next-install-f6cbda6ee7aad6b50752121efec2fe859473e69fa05224a5a922c89b6d703547/node_modules/.pnpm/next@file+..+next-repo-e5a854a8755fe7ef93de0e5643f957278dbb2e645d91501cff587a8de9bca252+packa_u5u5bf6tjtycg454y2qle46oku/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js
+ - /tmp/next-install-f6cbda6ee7aad6b50752121efec2fe859473e69fa05224a5a922c89b6d703547/node_modules/.pnpm/next@file+..+next-repo-e5a854a8755fe7ef93de0e5643f957278dbb2e645d91501cff587a8de9bca252+packa_u5u5bf6tjtycg454y2qle46oku/node_modules/next/dist/server/lib/router-server.js
+ - /tmp/next-install-f6cbda6ee7aad6b50752121efec2fe859473e69fa05224a5a922c89b6d703547/node_modules/.pnpm/next@file+..+next-repo-e5a854a8755fe7ef93de0e5643f957278dbb2e645d91501cff587a8de9bca252+packa_u5u5bf6tjtycg454y2qle46oku/node_modules/next/dist/server/lib/start-server.js",
+   "source": null,
  }

  26 |       description,
  27 |       source,
> 28 |     }).toMatchInlineSnapshot(`
     |        ^
  29 |      {
  30 |        "description": "Error: SSR only error",
  31 |        "source": "app/page.tsx (5:11) @ Page

  at Object.toMatchInlineSnapshot (development/app-dir/ssr-only-error/ssr-only-error.test.ts:28:8)

● Test suite failed to run

page.waitForSelector: Target page, context or browser has been closed
Call log:
  - waiting for locator('[data-nextjs-toast]')

  423 |     return this.chain(() => {
  424 |       return page
> 425 |         .waitForSelector(selector, { timeout, state: 'attached' })
      |          ^
  426 |         .then(async (el) => {
  427 |           // it seems selenium waits longer and tests rely on this behavior
  428 |           // so we wait for the load event fire before returning

  at waitForSelector (lib/browsers/playwright.ts:425:10)
  at BrowserInterface.chain (lib/browsers/base.ts:17:23)
  at BrowserInterface.chain [as waitForElementByCss] (lib/browsers/playwright.ts:423:17)
  at waitForElementByCss (lib/next-test-utils.ts:901:13)
  at Object.<anonymous> (development/app-dir/ssr-only-error/ssr-only-error.test.ts:20:21)
  at Proxy.chain (lib/browsers/base.ts:17:23)
  at Proxy.chain (lib/browsers/playwright.ts:395:17)
  at click (lib/next-test-utils.ts:901:62)
  at Object.<anonymous> (development/app-dir/ssr-only-error/ssr-only-error.test.ts:20:21)

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

pnpm test-start test/e2e/app-dir/app-css-pageextensions/index.test.ts

  • app dir - css with pageextensions > css support with pageextensions > page in app directory with pageextention, css should work > should support global css inside layout
Expand output

● app dir - css with pageextensions › css support with pageextensions › page in app directory with pageextention, css should work › should support global css inside layout

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-dev test/e2e/app-dir/app-catch-all-optional/app-catch-all-optional.test.ts (PPR)

  • app-catch-all-optional > should handle optional catchall
  • app-catch-all-optional > should handle optional catchall with no params
Expand output

● app-catch-all-optional › should handle optional catchall

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

Expected: "en"
Received: ""

   8 |   it('should handle optional catchall', async () => {
   9 |     let $ = await next.render$('/en/flags/the/rest')
> 10 |     expect($('body [data-lang]').text()).toBe('en')
     |                                          ^
  11 |     expect($('body [data-flags]').text()).toBe('flags')
  12 |     expect($('body [data-rest]').text()).toBe('the/rest')
  13 |   })

  at Object.toBe (e2e/app-dir/app-catch-all-optional/app-catch-all-optional.test.ts:10:42)

● app-catch-all-optional › should handle optional catchall with no params

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

Expected: "en"
Received: ""

  15 |   it('should handle optional catchall with no params', async () => {
  16 |     let $ = await next.render$('/en/flags')
> 17 |     expect($('body [data-lang]').text()).toBe('en')
     |                                          ^
  18 |     expect($('body [data-flags]').text()).toBe('flags')
  19 |     expect($('body [data-rest]').text()).toBe('')
  20 |   })

  at Object.toBe (e2e/app-dir/app-catch-all-optional/app-catch-all-optional.test.ts:17:42)

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

__NEXT_EXPERIMENTAL_PPR=true pnpm test-dev test/development/app-dir/dev-fetch-hmr/dev-fetch-hmr.test.ts (PPR)

  • 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/polyfills.js\"></script><script src=\"/_next/static/chunks/webpack.js\" defer=\"\"></script><script src=\"/_next/static/chunks/main.js\" defer=\"\"></script><script src=\"/_next/static/chunks/pages/_app.js\" defer=\"\"></script><script src=\"/_next/static/chunks/pages/_error.js\" defer=\"\"></script><script src=\"/_next/static/development/_buildManifest.js\" defer=\"\"></script><script src=\"/_next/static/development/_ssgManifest.js\" defer=\"\"></script><noscript id=\"__next_css__DO_NOT_USE__\"></noscript></head><body><div id=\"__next\"></div><script src=\"/_next/static/chunks/react-refresh.js\"></script><script id=\"__NEXT_DATA__\" type=\"application/json\">{\"props\":{\"pageProps\":{\"statusCode\":500}},\"page\":\"/_error\",\"query\":{},\"buildId\":\"development\",\"isFallback\":false,\"err\":{\"name\":\"Error\",\"source\":\"server\",\"message\":\"Cannot find module 'next\\\\dist\\\\server\\\\app-render\\\\work-async-storage.external.js'\\nRequire stack:\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/.next/server/app/page.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/require.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/load-components.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/build/utils.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/build/swc/options.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/build/swc/index.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/build/analysis/parse-module.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/build/analysis/get-page-static-info.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/lib/router-server.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/lib/start-server.js\",\"stack\":\"Error: Cannot find module 'next\\\\dist\\\\server\\\\app-render\\\\work-async-storage.external.js'\\nRequire stack:\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/.next/server/app/page.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/require.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/load-components.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/build/utils.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/build/swc/options.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/build/swc/index.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/build/analysis/parse-module.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/build/analysis/get-page-static-info.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/lib/router-server.js\\n- /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/lib/start-server.js\\n    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)\\n    at /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/require-hook.js:55:36\\n    at Module._load (node:internal/modules/cjs/loader:901:27)\\n    at Module.require (node:internal/modules/cjs/loader:1115:19)\\n    at mod.require (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/require-hook.js:65:28)\\n    at require (node:internal/modules/helpers:130:18)\\n    at ../../app-render/work-async-storage.external (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:82:22512)\\n    at __webpack_require__ (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:154:121227)\\n    at /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:154:125694\\n    at /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:163:7340\\n    at Object.\\u003canonymous\\u003e (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.dev.js:163:7379)\\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-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/require-hook.js:65:28)\\n    at require (node:internal/modules/helpers:130:18)\\n    at next/dist/compiled/next-server/app-page-experimental.runtime.dev.js (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/.next/server/app/page.js:22:18)\\n    at __webpack_require__ (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/.next/server/webpack-runtime.js:33:42)\\n    at eval (webpack-internal:///(ssr)/./node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/route-modules/app-page/module.compiled.js?a26c:5:30)\\n    at (ssr)/./node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/route-modules/app-page/module.compiled.js?a26c (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/.next/server/vendor-chunks/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu.js:3450:1)\\n    at __webpack_require__ (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/.next/server/webpack-runtime.js:33:42)\\n    at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js?name=app%2Fpage\\u0026page=%2Fpage\\u0026appPaths=%2Fpage\\u0026pagePath=private-next-app-dir%2Fpage.tsx\\u0026appDir=%2Ftmp%2Fnext-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e%2Fapp\\u0026pageExtensions=tsx\\u0026pageExtensions=ts\\u0026pageExtensions=jsx\\u0026pageExtensions=js\\u0026rootDir=%2Ftmp%2Fnext-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e\\u0026isDev=true\\u0026tsconfigPath=tsconfig.json\\u0026basePath=\\u0026assetPrefix=\\u0026nextConfigOutput=\\u0026preferredRegion=\\u0026middlewareConfig=e30%3D!:9:113)\\n    at (rsc)/./node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js?name=app%2Fpage\\u0026page=%2Fpage\\u0026appPaths=%2Fpage\\u0026pagePath=private-next-app-dir%2Fpage.tsx\\u0026appDir=%2Ftmp%2Fnext-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e%2Fapp\\u0026pageExtensions=tsx\\u0026pageExtensions=ts\\u0026pageExtensions=jsx\\u0026pageExtensions=js\\u0026rootDir=%2Ftmp%2Fnext-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e\\u0026isDev=true\\u0026tsconfigPath=tsconfig.json\\u0026basePath=\\u0026assetPrefix=\\u0026nextConfigOutput=\\u0026preferredRegion=\\u0026middlewareConfig=e30%3D! (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/.next/server/app/page.js:88:1)\\n    at __webpack_require__ (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/.next/server/webpack-runtime.js:33:42)\\n    at __webpack_exec__ (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/.next/server/app/page.js:160:39)\\n    at /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/.next/server/app/page.js:161:235\\n    at __webpack_require__.X (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/.next/server/webpack-runtime.js:163:21)\\n    at /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/.next/server/app/page.js:161:47\\n    at Object.\\u003canonymous\\u003e (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/.next/server/app/page.js:164:3)\\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-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/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-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/require.js:103:84)\\n    at loadComponentsImpl (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/load-components.js:129:57)\\n    at async DevServer.findPageComponentsImpl (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/next-server.js:798:36)\\n    at async DevServer.findPageComponents (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/dev/next-dev-server.js:625:16)\\n    at async DevServer.renderPageComponent (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/base-server.js:2287:24)\\n    at async DevServer.renderToResponseImpl (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/base-server.js:2338:32)\\n    at async DevServer.pipeImpl (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/base-server.js:954:25)\\n    at async NextNodeServer.handleCatchallRenderRequest (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/next-server.js:294:17)\\n    at async DevServer.handleRequestImpl (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/base-server.js:847:17)\\n    at async /tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/dev/next-dev-server.js:371:20\\n    at async Span.traceAsyncFn (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/trace/trace.js:156:20)\\n    at async DevServer.handleRequest (/tmp/next-install-3fa480f2ac80e7f47ee6456f525aa6b74a2baf4c3ca1351d78a847aeb487345e/node_modules/.pnpm/file+..+next-repo-9422411e1e2bacb2409da6c64cdfa744fa6adc1c0ea29552c9533ec004ad051e+packages+n_ew2omphsxqkpvr5b4tb5xkeemu/node_modules/next/dist/server/dev/next-dev-server.js:368:24)\"},\"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-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-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/.next/server/app/server/page.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/server/require.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/server/load-components.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/build/utils.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/build/swc/options.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/build/swc/index.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/build/analysis/parse-module.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/build/analysis/get-page-static-info.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/server/lib/router-server.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/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-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/.next/server/app/client/page.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/server/require.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/server/load-components.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/build/utils.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/build/swc/options.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/build/swc/index.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/build/analysis/parse-module.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/build/analysis/get-page-static-info.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/server/lib/router-server.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/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-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/.next/server/app/server/page.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/server/require.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/server/load-components.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/build/utils.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/build/swc/options.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/build/swc/index.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/build/analysis/parse-module.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/build/analysis/get-page-static-info.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/node_modules/next/dist/server/lib/router-server.js
- /tmp/next-install-eaeb459f1bf2a693e0c99bea311246b71372b17bd9ae7104625c63c30f5a05c9/node_modules/.pnpm/file+..+next-repo-aad766bd86db47e2fd98e4b2c4d486736edc0d29620e1ad28fefbd21ce041d8b+packages+n_bto5m3suv5i6dzpnkqhahteefm/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.

__NEXT_EXPERIMENTAL_PPR=true pnpm test-dev test/development/app-dir/dynamic-io-dev-warmup/dynamic-io.dev-warmup.test.ts (PPR)

  • dynamic-io-dev-warmup > logs with Prerender or Server environment depending based on whether the timing of when the log runs relative to this environment boundary
Expand output

● dynamic-io-dev-warmup › logs with Prerender or Server environment depending based on whether the timing of when the log runs relative to this environment boundary

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

Expected: ArrayContaining [StringMatching /^(?=.*\bafter layout cache read\b)(?=.*\bPrerender\b).*/]
Received: ["Failed to load resource: the server responded with a status of 500 (Internal Server Error)", "%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools font-weight:bold", "[HMR] connected", "connected to ws at ws://localhost:41871/_next/webpack-hmr", "Next.js page already hydrated", "received ws message {\"action\":\"sync\",\"hash\":\"437c90d18bc90028\",\"errors\":[],\"warnings\":[],\"versionInfo\":{\"staleness\":\"fresh\",\"installed\":\"15.2.0-canary.16\"},\"debug\":{}}", "received ws message {\"action\":\"appIsrManifest\",\"data\":{}}"]

  11 |     environment: string
  12 |   ) {
> 13 |     expect(logs.map((l) => l.message)).toEqual(
     |                                        ^
  14 |       expect.arrayContaining([
  15 |         expect.stringMatching(
  16 |           new RegExp(`^(?=.*\\b${message}\\b)(?=.*\\b${environment}\\b).*`)

  at toEqual (development/app-dir/dynamic-io-dev-warmup/dynamic-io.dev-warmup.test.ts:13:40)
  at Object.assertLog (development/app-dir/dynamic-io-dev-warmup/dynamic-io.dev-warmup.test.ts:32:5)

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

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

  • RSC binary serialization > should correctly encode/decode binaries and hydrate
Expand output

● RSC binary serialization › should correctly encode/decode binaries and hydrate

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)

● RSC binary serialization › should correctly encode/decode binaries and hydrate

next instance is not initialized yet, make sure you call methods on next instance in test body.

  266 |     get: function (_target, property) {
  267 |       if (!next) {
> 268 |         throw new Error(
      |               ^
  269 |           'next instance is not initialized yet, make sure you call methods on next instance in test body.'
  270 |         )
  271 |       }

  at Object.get (lib/e2e-utils/index.ts:268:15)
  at Object.stop (e2e/app-dir/binary/rsc-binary.test.ts:15:16)

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

pnpm test-start test/e2e/app-dir/app-basepath-custom-server/index.test.ts

  • custom-app-server-action-redirect > redirects with basepath properly when server action handler uses redirect
  • custom-app-server-action-redirect > redirects with proper cookies set from both redirect response and post respose
Expand output

● custom-app-server-action-redirect › redirects with basepath properly when server action handler uses redirect

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)

● custom-app-server-action-redirect › redirects with proper cookies set from both redirect response and post respose

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 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 3.9s
   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]__1d1e23._.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/drop-srcset/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]__1d1e23._.js:1:2487)
  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/packages_next_dist_cf9bc1._.js:1:873)
  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/packages_next_dist_cf9bc1._.js:2:20930)
  > Build error occurred
  Error: Failed to collect page data for /drop-srcset
  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 3.9s
   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]__1d1e23._.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/drop-srcset/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]__1d1e23._.js:1:2487)
  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/packages_next_dist_cf9bc1._.js:1:873)
  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/packages_next_dist_cf9bc1._.js:2:20930)
  > Build error occurred
  Error: Failed to collect page data for /drop-srcset
  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 3.9s
   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]__1d1e23._.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/drop-srcset/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]__1d1e23._.js:1:2487)
  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/packages_next_dist_cf9bc1._.js:1:873)
  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/packages_next_dist_cf9bc1._.js:2:20930)
  > Build error occurred
  Error: Failed to collect page data for /drop-srcset
  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 3.9s
   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]__1d1e23._.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/drop-srcset/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]__1d1e23._.js:1:2487)
  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/packages_next_dist_cf9bc1._.js:1:873)
  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/packages_next_dist_cf9bc1._.js:2:20930)
  > Build error occurred
  Error: Failed to collect page data for /drop-srcset
  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 3.9s
   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]__1d1e23._.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/drop-srcset/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]__1d1e23._.js:1:2487)
  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/packages_next_dist_cf9bc1._.js:1:873)
  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/packages_next_dist_cf9bc1._.js:2:20930)
  > Build error occurred
  Error: Failed to collect page data for /drop-srcset
  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 3.9s
   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]__1d1e23._.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/drop-srcset/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]__1d1e23._.js:1:2487)
  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/packages_next_dist_cf9bc1._.js:1:873)
  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/packages_next_dist_cf9bc1._.js:2:20930)
  > Build error occurred
  Error: Failed to collect page data for /drop-srcset
  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 3.9s
   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]__1d1e23._.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/drop-srcset/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]__1d1e23._.js:1:2487)
  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/packages_next_dist_cf9bc1._.js:1:873)
  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/packages_next_dist_cf9bc1._.js:2:20930)
  > Build error occurred
  Error: Failed to collect page data for /drop-srcset
  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 3.9s
   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]__1d1e23._.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/drop-srcset/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]__1d1e23._.js:1:2487)
  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/packages_next_dist_cf9bc1._.js:1:873)
  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/packages_next_dist_cf9bc1._.js:2:20930)
  > Build error occurred
  Error: Failed to collect page data for /drop-srcset
  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 3.9s
   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]__1d1e23._.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/drop-srcset/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]__1d1e23._.js:1:2487)
  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/packages_next_dist_cf9bc1._.js:1:873)
  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/packages_next_dist_cf9bc1._.js:2:20930)
  > Build error occurred
  Error: Failed to collect page data for /drop-srcset
  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 3.9s
   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]__1d1e23._.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/drop-srcset/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]__1d1e23._.js:1:2487)
  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/packages_next_dist_cf9bc1._.js:1:873)
  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/packages_next_dist_cf9bc1._.js:2:20930)
  > Build error occurred
  Error: Failed to collect page data for /drop-srcset
  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 3.9s
   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]__1d1e23._.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/drop-srcset/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]__1d1e23._.js:1:2487)
  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/packages_next_dist_cf9bc1._.js:1:873)
  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/packages_next_dist_cf9bc1._.js:2:20930)
  > Build error occurred
  Error: Failed to collect page data for /drop-srcset
  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 3.9s
   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]__1d1e23._.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/drop-srcset/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]__1d1e23._.js:1:2487)
  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/packages_next_dist_cf9bc1._.js:1:873)
  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/packages_next_dist_cf9bc1._.js:2:20930)
  > Build error occurred
  Error: Failed to collect page data for /drop-srcset
  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 3.9s
   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]__1d1e23._.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/drop-srcset/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]__1d1e23._.js:1:2487)
  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/packages_next_dist_cf9bc1._.js:1:873)
  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/packages_next_dist_cf9bc1._.js:2:20930)
  > Build error occurred
  Error: Failed to collect page data for /drop-srcset
  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 3.9s
   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]__1d1e23._.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/drop-srcset/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]__1d1e23._.js:1:2487)
  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/packages_next_dist_cf9bc1._.js:1:873)
  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/packages_next_dist_cf9bc1._.js:2:20930)
  > Build error occurred
  Error: Failed to collect page data for /drop-srcset
  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 3.9s
   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]__1d1e23._.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/drop-srcset/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]__1d1e23._.js:1:2487)
  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/packages_next_dist_cf9bc1._.js:1:873)
  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/packages_next_dist_cf9bc1._.js:2:20930)
  > Build error occurred
  Error: Failed to collect page data for /drop-srcset
  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/create-next-app/templates/app-api.test.ts

  • create-next-app --api (Headless App) > should create JavaScript project with --js flag
  • create-next-app --api (Headless App) > should create TypeScript project with --ts flag
  • create-next-app --api (Headless App) > should create project inside "src" directory with --src-dir flag
  • create-next-app --api (Headless App) > should enable turbopack dev with --turbopack flag
Expand output

● create-next-app --api (Headless App) › should create JavaScript project with --js flag

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

Expected substring: "Hello world!"
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/polyfills.js\"></script><script src=\"/_next/static/chunks/webpack.js\" defer=\"\"></script><script src=\"/_next/static/chunks/main.js\" defer=\"\"></script><script src=\"/_next/static/chunks/pages/_app.js\" defer=\"\"></script><script src=\"/_next/static/chunks/pages/_error.js\" defer=\"\"></script><script src=\"/_next/static/development/_buildManifest.js\" defer=\"\"></script><script src=\"/_next/static/development/_ssgManifest.js\" defer=\"\"></script><noscript id=\"__next_css__DO_NOT_USE__\"></noscript></head><body><div id=\"__next\"></div><script src=\"/_next/static/chunks/react-refresh.js\"></script><script id=\"__NEXT_DATA__\" type=\"application/json\">{\"props\":{\"pageProps\":{\"statusCode\":500}},\"page\":\"/_error\",\"query\":{},\"buildId\":\"development\",\"isFallback\":false,\"err\":{\"name\":\"Error\",\"source\":\"server\",\"message\":\"Cannot find module 'next\\\\dist\\\\server\\\\app-render\\\\work-async-storage.external.js'\\nRequire stack:\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/.next/server/app/route.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/require.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/load-components.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/build/utils.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/build/swc/options.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/build/swc/index.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/build/analysis/parse-module.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/build/analysis/get-page-static-info.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/lib/router-server.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/lib/start-server.js\",\"stack\":\"Error: Cannot find module 'next\\\\dist\\\\server\\\\app-render\\\\work-async-storage.external.js'\\nRequire stack:\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/.next/server/app/route.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/require.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/load-components.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/build/utils.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/build/swc/options.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/build/swc/index.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/build/analysis/parse-module.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/build/analysis/get-page-static-info.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/lib/router-server.js\\n- /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/lib/start-server.js\\n    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)\\n    at /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/require-hook.js:55:36\\n    at Module._load (node:internal/modules/cjs/loader:922:27)\\n    at Module.require (node:internal/modules/cjs/loader:1143:19)\\n    at mod.require (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/require-hook.js:65:28)\\n    at require (node:internal/modules/cjs/helpers:119:18)\\n    at /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:53674\\n    at /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:10:50732\\n    at Object.\\u003canonymous\\u003e (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:10:50771)\\n    at Module._compile (node:internal/modules/cjs/loader:1256:14)\\n    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)\\n    at Module.load (node:internal/modules/cjs/loader:1119:32)\\n    at Module._load (node:internal/modules/cjs/loader:960:12)\\n    at Module.require (node:internal/modules/cjs/loader:1143:19)\\n    at mod.require (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/require-hook.js:65:28)\\n    at require (node:internal/modules/cjs/helpers:119:18)\\n    at next/dist/compiled/next-server/app-route.runtime.dev.js (/tmp/next-test-2pbkxt18m7c/app-js/.next/server/app/route.js:25:18)\\n    at __webpack_require__ (/tmp/next-test-2pbkxt18m7c/app-js/.next/server/webpack-runtime.js:25:42)\\n    at (rsc)/./node_modules/next/dist/server/route-modules/app-route/module.compiled.js (/tmp/next-test-2pbkxt18m7c/app-js/.next/server/vendor-chunks/next.js:4318:30)\\n    at __webpack_require__ (/tmp/next-test-2pbkxt18m7c/app-js/.next/server/webpack-runtime.js:25:42)\\n    at (rsc)/./node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js?name=app%2Froute\\u0026page=%2Froute\\u0026appPaths=\\u0026pagePath=private-next-app-dir%2Froute.js\\u0026appDir=%2Ftmp%2Fnext-test-2pbkxt18m7c%2Fapp-js%2Fapp\\u0026pageExtensions=tsx\\u0026pageExtensions=ts\\u0026pageExtensions=jsx\\u0026pageExtensions=js\\u0026rootDir=%2Ftmp%2Fnext-test-2pbkxt18m7c%2Fapp-js\\u0026isDev=true\\u0026tsconfigPath=tsconfig.json\\u0026basePath=\\u0026assetPrefix=\\u0026nextConfigOutput=\\u0026preferredRegion=\\u0026middlewareConfig=e30%3D! (/tmp/next-test-2pbkxt18m7c/app-js/.next/server/app/route.js:77:114)\\n    at __webpack_require__ (/tmp/next-test-2pbkxt18m7c/app-js/.next/server/webpack-runtime.js:25:42)\\n    at __webpack_exec__ (/tmp/next-test-2pbkxt18m7c/app-js/.next/server/app/route.js:166:39)\\n    at /tmp/next-test-2pbkxt18m7c/app-js/.next/server/app/route.js:167:83\\n    at __webpack_require__.X (/tmp/next-test-2pbkxt18m7c/app-js/.next/server/webpack-runtime.js:113:21)\\n    at /tmp/next-test-2pbkxt18m7c/app-js/.next/server/app/route.js:167:47\\n    at Object.\\u003canonymous\\u003e (/tmp/next-test-2pbkxt18m7c/app-js/.next/server/app/route.js:170:3)\\n    at Module._compile (node:internal/modules/cjs/loader:1256:14)\\n    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)\\n    at Module.load (node:internal/modules/cjs/loader:1119:32)\\n    at Module._load (node:internal/modules/cjs/loader:960:12)\\n    at Module.require (node:internal/modules/cjs/loader:1143:19)\\n    at mod.require (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/require-hook.js:65:28)\\n    at require (node:internal/modules/cjs/helpers:119:18)\\n    at requirePage (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/require.js:103:84)\\n    at loadComponentsImpl (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/load-components.js:129:57)\\n    at async DevServer.findPageComponentsImpl (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/next-server.js:798:36)\\n    at async DevServer.findPageComponents (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/dev/next-dev-server.js:625:16)\\n    at async DevServer.renderPageComponent (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/base-server.js:2287:24)\\n    at async DevServer.renderToResponseImpl (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/base-server.js:2338:32)\\n    at async DevServer.pipeImpl (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/base-server.js:954:25)\\n    at async NextNodeServer.handleCatchallRenderRequest (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/next-server.js:294:17)\\n    at async DevServer.handleRequestImpl (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/base-server.js:847:17)\\n    at async /tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/dev/next-dev-server.js:371:20\\n    at async Span.traceAsyncFn (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/trace/trace.js:156:20)\\n    at async DevServer.handleRequest (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/dev/next-dev-server.js:368:24)\\n    at async invokeRender (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/lib/router-server.js:233:21)\\n    at async handleRequest (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/lib/router-server.js:417:24)\\n    at async requestHandlerImpl (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/lib/router-server.js:441:13)\\n    at async Server.requestListener (/tmp/next-test-2pbkxt18m7c/app-js/node_modules/next/dist/server/lib/start-server.js:155:13)\"},\"gip\":true,\"scriptLoader\":[]}</script></body></html>"

  65 |     const res = await fetchViaHTTP(port, '/')
  66 |     if (isEmpty || isApi) {
> 67 |       expect(await res.text()).toContain('Hello world!')
     |                                ^
  68 |     } else {
  69 |       expect(await res.text()).toContain('Get started by editing')
  70 |     }

  at toContain (integration/create-next-app/utils.ts:67:32)
  at integration/create-next-app/templates/app-api.test.ts:85:7
  at useTempDir (lib/use-temp-dir.ts:24:5)
  at Object.<anonymous> (integration/create-next-app/templates/app-api.test.ts:62:5)

● create-next-app --api (Headless App) › should create TypeScript project with --ts flag

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

Expected substring: "Hello world!"
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/polyfills.js\"></script><script src=\"/_next/static/chunks/webpack.js\" defer=\"\"></script><script src=\"/_next/static/chunks/main.js\" defer=\"\"></script><script src=\"/_next/static/chunks/pages/_app.js\" defer=\"\"></script><script src=\"/_next/static/chunks/pages/_error.js\" defer=\"\"></script><script src=\"/_next/static/development/_buildManifest.js\" defer=\"\"></script><script src=\"/_next/static/development/_ssgManifest.js\" defer=\"\"></script><noscript id=\"__next_css__DO_NOT_USE__\"></noscript></head><body><div id=\"__next\"></div><script src=\"/_next/static/chunks/react-refresh.js\"></script><script id=\"__NEXT_DATA__\" type=\"application/json\">{\"props\":{\"pageProps\":{\"statusCode\":500}},\"page\":\"/_error\",\"query\":{},\"buildId\":\"development\",\"isFallback\":false,\"err\":{\"name\":\"Error\",\"source\":\"server\",\"message\":\"Cannot find module 'next\\\\dist\\\\server\\\\app-render\\\\work-async-storage.external.js'\\nRequire stack:\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/.next/server/app/route.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/require.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/load-components.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/build/utils.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/build/swc/options.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/build/swc/index.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/build/next-config-ts/transpile-config.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/config.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/next.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/lib/start-server.js\",\"stack\":\"Error: Cannot find module 'next\\\\dist\\\\server\\\\app-render\\\\work-async-storage.external.js'\\nRequire stack:\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/.next/server/app/route.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/require.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/load-components.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/build/utils.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/build/swc/options.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/build/swc/index.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/build/next-config-ts/transpile-config.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/config.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/next.js\\n- /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/lib/start-server.js\\n    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)\\n    at /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/require-hook.js:55:36\\n    at Module._load (node:internal/modules/cjs/loader:922:27)\\n    at Module.require (node:internal/modules/cjs/loader:1143:19)\\n    at mod.require (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/require-hook.js:65:28)\\n    at require (node:internal/modules/cjs/helpers:119:18)\\n    at /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:53674\\n    at /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:10:50732\\n    at Object.\\u003canonymous\\u003e (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:10:50771)\\n    at Module._compile (node:internal/modules/cjs/loader:1256:14)\\n    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)\\n    at Module.load (node:internal/modules/cjs/loader:1119:32)\\n    at Module._load (node:internal/modules/cjs/loader:960:12)\\n    at Module.require (node:internal/modules/cjs/loader:1143:19)\\n    at mod.require (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/require-hook.js:65:28)\\n    at require (node:internal/modules/cjs/helpers:119:18)\\n    at next/dist/compiled/next-server/app-route.runtime.dev.js (/tmp/next-test-tu8j5nhqgy/app-ts/.next/server/app/route.js:25:18)\\n    at __webpack_require__ (/tmp/next-test-tu8j5nhqgy/app-ts/.next/server/webpack-runtime.js:25:42)\\n    at (rsc)/./node_modules/next/dist/server/route-modules/app-route/module.compiled.js (/tmp/next-test-tu8j5nhqgy/app-ts/.next/server/vendor-chunks/next.js:4318:30)\\n    at __webpack_require__ (/tmp/next-test-tu8j5nhqgy/app-ts/.next/server/webpack-runtime.js:25:42)\\n    at (rsc)/./node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js?name=app%2Froute\\u0026page=%2Froute\\u0026appPaths=\\u0026pagePath=private-next-app-dir%2Froute.ts\\u0026appDir=%2Ftmp%2Fnext-test-tu8j5nhqgy%2Fapp-ts%2Fapp\\u0026pageExtensions=tsx\\u0026pageExtensions=ts\\u0026pageExtensions=jsx\\u0026pageExtensions=js\\u0026rootDir=%2Ftmp%2Fnext-test-tu8j5nhqgy%2Fapp-ts\\u0026isDev=true\\u0026tsconfigPath=tsconfig.json\\u0026basePath=\\u0026assetPrefix=\\u0026nextConfigOutput=\\u0026preferredRegion=\\u0026middlewareConfig=e30%3D! (/tmp/next-test-tu8j5nhqgy/app-ts/.next/server/app/route.js:77:114)\\n    at __webpack_require__ (/tmp/next-test-tu8j5nhqgy/app-ts/.next/server/webpack-runtime.js:25:42)\\n    at __webpack_exec__ (/tmp/next-test-tu8j5nhqgy/app-ts/.next/server/app/route.js:166:39)\\n    at /tmp/next-test-tu8j5nhqgy/app-ts/.next/server/app/route.js:167:83\\n    at __webpack_require__.X (/tmp/next-test-tu8j5nhqgy/app-ts/.next/server/webpack-runtime.js:113:21)\\n    at /tmp/next-test-tu8j5nhqgy/app-ts/.next/server/app/route.js:167:47\\n    at Object.\\u003canonymous\\u003e (/tmp/next-test-tu8j5nhqgy/app-ts/.next/server/app/route.js:170:3)\\n    at Module._compile (node:internal/modules/cjs/loader:1256:14)\\n    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)\\n    at Module.load (node:internal/modules/cjs/loader:1119:32)\\n    at Module._load (node:internal/modules/cjs/loader:960:12)\\n    at Module.require (node:internal/modules/cjs/loader:1143:19)\\n    at mod.require (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/require-hook.js:65:28)\\n    at require (node:internal/modules/cjs/helpers:119:18)\\n    at requirePage (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/require.js:103:84)\\n    at loadComponentsImpl (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/load-components.js:129:57)\\n    at async DevServer.findPageComponentsImpl (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/next-server.js:798:36)\\n    at async DevServer.findPageComponents (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/dev/next-dev-server.js:625:16)\\n    at async DevServer.renderPageComponent (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/base-server.js:2287:24)\\n    at async DevServer.renderToResponseImpl (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/base-server.js:2338:32)\\n    at async DevServer.pipeImpl (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/base-server.js:954:25)\\n    at async NextNodeServer.handleCatchallRenderRequest (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/next-server.js:294:17)\\n    at async DevServer.handleRequestImpl (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/base-server.js:847:17)\\n    at async /tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/dev/next-dev-server.js:371:20\\n    at async Span.traceAsyncFn (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/trace/trace.js:156:20)\\n    at async DevServer.handleRequest (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/dev/next-dev-server.js:368:24)\\n    at async invokeRender (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/lib/router-server.js:233:21)\\n    at async handleRequest (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/lib/router-server.js:417:24)\\n    at async requestHandlerImpl (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/lib/router-server.js:441:13)\\n    at async Server.requestListener (/tmp/next-test-tu8j5nhqgy/app-ts/node_modules/next/dist/server/lib/start-server.js:155:13)\"},\"gip\":true,\"scriptLoader\":[]}</script></body></html>"

  65 |     const res = await fetchViaHTTP(port, '/')
  66 |     if (isEmpty || isApi) {
> 67 |       expect(await res.text()).toContain('Hello world!')
     |                                ^
  68 |     } else {
  69 |       expect(await res.text()).toContain('Get started by editing')
  70 |     }

  at toContain (integration/create-next-app/utils.ts:67:32)
  at integration/create-next-app/templates/app-api.test.ts:117:7
  at useTempDir (lib/use-temp-dir.ts:24:5)
  at Object.<anonymous> (integration/create-next-app/templates/app-api.test.ts:94:5)

● create-next-app --api (Headless App) › should create project inside "src" directory with --src-dir flag

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

Expected substring: "Hello world!"
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/polyfills.js\"></script><script src=\"/_next/static/chunks/webpack.js\" defer=\"\"></script><script src=\"/_next/static/chunks/main.js\" defer=\"\"></script><script src=\"/_next/static/chunks/pages/_app.js\" defer=\"\"></script><script src=\"/_next/static/chunks/pages/_error.js\" defer=\"\"></script><script src=\"/_next/static/development/_buildManifest.js\" defer=\"\"></script><script src=\"/_next/static/development/_ssgManifest.js\" defer=\"\"></script><noscript id=\"__next_css__DO_NOT_USE__\"></noscript></head><body><div id=\"__next\"></div><script src=\"/_next/static/chunks/react-refresh.js\"></script><script id=\"__NEXT_DATA__\" type=\"application/json\">{\"props\":{\"pageProps\":{\"statusCode\":500}},\"page\":\"/_error\",\"query\":{},\"buildId\":\"development\",\"isFallback\":false,\"err\":{\"name\":\"Error\",\"source\":\"server\",\"message\":\"Cannot find module 'next\\\\dist\\\\server\\\\app-render\\\\work-async-storage.external.js'\\nRequire stack:\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/.next/server/app/route.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/require.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/load-components.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/build/utils.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/build/swc/options.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/build/swc/index.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/build/next-config-ts/transpile-config.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/config.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/next.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/lib/start-server.js\",\"stack\":\"Error: Cannot find module 'next\\\\dist\\\\server\\\\app-render\\\\work-async-storage.external.js'\\nRequire stack:\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/.next/server/app/route.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/require.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/load-components.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/build/utils.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/build/swc/options.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/build/swc/index.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/build/next-config-ts/transpile-config.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/config.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/next.js\\n- /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/lib/start-server.js\\n    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)\\n    at /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/require-hook.js:55:36\\n    at Module._load (node:internal/modules/cjs/loader:922:27)\\n    at Module.require (node:internal/modules/cjs/loader:1143:19)\\n    at mod.require (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/require-hook.js:65:28)\\n    at require (node:internal/modules/cjs/helpers:119:18)\\n    at /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:53674\\n    at /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:10:50732\\n    at Object.\\u003canonymous\\u003e (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:10:50771)\\n    at Module._compile (node:internal/modules/cjs/loader:1256:14)\\n    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)\\n    at Module.load (node:internal/modules/cjs/loader:1119:32)\\n    at Module._load (node:internal/modules/cjs/loader:960:12)\\n    at Module.require (node:internal/modules/cjs/loader:1143:19)\\n    at mod.require (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/require-hook.js:65:28)\\n    at require (node:internal/modules/cjs/helpers:119:18)\\n    at next/dist/compiled/next-server/app-route.runtime.dev.js (/tmp/next-test-zm464osrjir/app-src-dir/.next/server/app/route.js:25:18)\\n    at __webpack_require__ (/tmp/next-test-zm464osrjir/app-src-dir/.next/server/webpack-runtime.js:25:42)\\n    at (rsc)/./node_modules/next/dist/server/route-modules/app-route/module.compiled.js (/tmp/next-test-zm464osrjir/app-src-dir/.next/server/vendor-chunks/next.js:4318:30)\\n    at __webpack_require__ (/tmp/next-test-zm464osrjir/app-src-dir/.next/server/webpack-runtime.js:25:42)\\n    at (rsc)/./node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js?name=app%2Froute\\u0026page=%2Froute\\u0026appPaths=\\u0026pagePath=private-next-app-dir%2Froute.ts\\u0026appDir=%2Ftmp%2Fnext-test-zm464osrjir%2Fapp-src-dir%2Fsrc%2Fapp\\u0026pageExtensions=tsx\\u0026pageExtensions=ts\\u0026pageExtensions=jsx\\u0026pageExtensions=js\\u0026rootDir=%2Ftmp%2Fnext-test-zm464osrjir%2Fapp-src-dir\\u0026isDev=true\\u0026tsconfigPath=tsconfig.json\\u0026basePath=\\u0026assetPrefix=\\u0026nextConfigOutput=\\u0026preferredRegion=\\u0026middlewareConfig=e30%3D! (/tmp/next-test-zm464osrjir/app-src-dir/.next/server/app/route.js:77:114)\\n    at __webpack_require__ (/tmp/next-test-zm464osrjir/app-src-dir/.next/server/webpack-runtime.js:25:42)\\n    at __webpack_exec__ (/tmp/next-test-zm464osrjir/app-src-dir/.next/server/app/route.js:166:39)\\n    at /tmp/next-test-zm464osrjir/app-src-dir/.next/server/app/route.js:167:83\\n    at __webpack_require__.X (/tmp/next-test-zm464osrjir/app-src-dir/.next/server/webpack-runtime.js:113:21)\\n    at /tmp/next-test-zm464osrjir/app-src-dir/.next/server/app/route.js:167:47\\n    at Object.\\u003canonymous\\u003e (/tmp/next-test-zm464osrjir/app-src-dir/.next/server/app/route.js:170:3)\\n    at Module._compile (node:internal/modules/cjs/loader:1256:14)\\n    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)\\n    at Module.load (node:internal/modules/cjs/loader:1119:32)\\n    at Module._load (node:internal/modules/cjs/loader:960:12)\\n    at Module.require (node:internal/modules/cjs/loader:1143:19)\\n    at mod.require (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/require-hook.js:65:28)\\n    at require (node:internal/modules/cjs/helpers:119:18)\\n    at requirePage (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/require.js:103:84)\\n    at loadComponentsImpl (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/load-components.js:129:57)\\n    at async DevServer.findPageComponentsImpl (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/next-server.js:798:36)\\n    at async DevServer.findPageComponents (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/dev/next-dev-server.js:625:16)\\n    at async DevServer.renderPageComponent (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/base-server.js:2287:24)\\n    at async DevServer.renderToResponseImpl (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/base-server.js:2338:32)\\n    at async DevServer.pipeImpl (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/base-server.js:954:25)\\n    at async NextNodeServer.handleCatchallRenderRequest (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/next-server.js:294:17)\\n    at async DevServer.handleRequestImpl (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/base-server.js:847:17)\\n    at async /tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/dev/next-dev-server.js:371:20\\n    at async Span.traceAsyncFn (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/trace/trace.js:156:20)\\n    at async DevServer.handleRequest (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/dev/next-dev-server.js:368:24)\\n    at async invokeRender (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/lib/router-server.js:233:21)\\n    at async handleRequest (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/lib/router-server.js:417:24)\\n    at async requestHandlerImpl (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/lib/router-server.js:441:13)\\n    at async Server.requestListener (/tmp/next-test-zm464osrjir/app-src-dir/node_modules/next/dist/server/lib/start-server.js:155:13)\"},\"gip\":true,\"scriptLoader\":[]}</script></body></html>"

  65 |     const res = await fetchViaHTTP(port, '/')
  66 |     if (isEmpty || isApi) {
> 67 |       expect(await res.text()).toContain('Hello world!')
     |                                ^
  68 |     } else {
  69 |       expect(await res.text()).toContain('Get started by editing')
  70 |     }

  at toContain (integration/create-next-app/utils.ts:67:32)
  at integration/create-next-app/templates/app-api.test.ts:148:7
  at useTempDir (lib/use-temp-dir.ts:24:5)
  at Object.<anonymous> (integration/create-next-app/templates/app-api.test.ts:123:5)

● create-next-app --api (Headless App) › should enable turbopack dev with --turbopack flag

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

Expected substring: "Hello world!"
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/polyfills.js\"></script><script src=\"/_next/static/chunks/webpack.js\" defer=\"\"></script><script src=\"/_next/static/chunks/main.js\" defer=\"\"></script><script src=\"/_next/static/chunks/pages/_app.js\" defer=\"\"></script><script src=\"/_next/static/chunks/pages/_error.js\" defer=\"\"></script><script src=\"/_next/static/development/_buildManifest.js\" defer=\"\"></script><script src=\"/_next/static/development/_ssgManifest.js\" defer=\"\"></script><noscript id=\"__next_css__DO_NOT_USE__\"></noscript></head><body><div id=\"__next\"></div><script src=\"/_next/static/chunks/react-refresh.js\"></script><script id=\"__NEXT_DATA__\" type=\"application/json\">{\"props\":{\"pageProps\":{\"statusCode\":500}},\"page\":\"/_error\",\"query\":{},\"buildId\":\"development\",\"isFallback\":false,\"err\":{\"name\":\"Error\",\"source\":\"server\",\"message\":\"Cannot find module 'next\\\\dist\\\\server\\\\app-render\\\\work-async-storage.external.js'\\nRequire stack:\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/.next/server/app/route.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/require.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/load-components.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/build/utils.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/build/swc/options.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/build/swc/index.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/build/next-config-ts/transpile-config.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/config.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/next.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/lib/start-server.js\",\"stack\":\"Error: Cannot find module 'next\\\\dist\\\\server\\\\app-render\\\\work-async-storage.external.js'\\nRequire stack:\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/.next/server/app/route.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/require.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/load-components.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/build/utils.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/build/swc/options.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/build/swc/index.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/build/next-config-ts/transpile-config.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/config.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/next.js\\n- /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/lib/start-server.js\\n    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)\\n    at /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/require-hook.js:55:36\\n    at Module._load (node:internal/modules/cjs/loader:922:27)\\n    at Module.require (node:internal/modules/cjs/loader:1143:19)\\n    at mod.require (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/require-hook.js:65:28)\\n    at require (node:internal/modules/cjs/helpers:119:18)\\n    at /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:6:53674\\n    at /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:10:50732\\n    at Object.\\u003canonymous\\u003e (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/compiled/next-server/app-route.runtime.dev.js:10:50771)\\n    at Module._compile (node:internal/modules/cjs/loader:1256:14)\\n    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)\\n    at Module.load (node:internal/modules/cjs/loader:1119:32)\\n    at Module._load (node:internal/modules/cjs/loader:960:12)\\n    at Module.require (node:internal/modules/cjs/loader:1143:19)\\n    at mod.require (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/require-hook.js:65:28)\\n    at require (node:internal/modules/cjs/helpers:119:18)\\n    at next/dist/compiled/next-server/app-route.runtime.dev.js (/tmp/next-test-gbnp2ibeqxa/app-turbo/.next/server/app/route.js:25:18)\\n    at __webpack_require__ (/tmp/next-test-gbnp2ibeqxa/app-turbo/.next/server/webpack-runtime.js:25:42)\\n    at (rsc)/./node_modules/next/dist/server/route-modules/app-route/module.compiled.js (/tmp/next-test-gbnp2ibeqxa/app-turbo/.next/server/vendor-chunks/next.js:4318:30)\\n    at __webpack_require__ (/tmp/next-test-gbnp2ibeqxa/app-turbo/.next/server/webpack-runtime.js:25:42)\\n    at (rsc)/./node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js?name=app%2Froute\\u0026page=%2Froute\\u0026appPaths=\\u0026pagePath=private-next-app-dir%2Froute.ts\\u0026appDir=%2Ftmp%2Fnext-test-gbnp2ibeqxa%2Fapp-turbo%2Fapp\\u0026pageExtensions=tsx\\u0026pageExtensions=ts\\u0026pageExtensions=jsx\\u0026pageExtensions=js\\u0026rootDir=%2Ftmp%2Fnext-test-gbnp2ibeqxa%2Fapp-turbo\\u0026isDev=true\\u0026tsconfigPath=tsconfig.json\\u0026basePath=\\u0026assetPrefix=\\u0026nextConfigOutput=\\u0026preferredRegion=\\u0026middlewareConfig=e30%3D! (/tmp/next-test-gbnp2ibeqxa/app-turbo/.next/server/app/route.js:77:114)\\n    at __webpack_require__ (/tmp/next-test-gbnp2ibeqxa/app-turbo/.next/server/webpack-runtime.js:25:42)\\n    at __webpack_exec__ (/tmp/next-test-gbnp2ibeqxa/app-turbo/.next/server/app/route.js:166:39)\\n    at /tmp/next-test-gbnp2ibeqxa/app-turbo/.next/server/app/route.js:167:83\\n    at __webpack_require__.X (/tmp/next-test-gbnp2ibeqxa/app-turbo/.next/server/webpack-runtime.js:113:21)\\n    at /tmp/next-test-gbnp2ibeqxa/app-turbo/.next/server/app/route.js:167:47\\n    at Object.\\u003canonymous\\u003e (/tmp/next-test-gbnp2ibeqxa/app-turbo/.next/server/app/route.js:170:3)\\n    at Module._compile (node:internal/modules/cjs/loader:1256:14)\\n    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)\\n    at Module.load (node:internal/modules/cjs/loader:1119:32)\\n    at Module._load (node:internal/modules/cjs/loader:960:12)\\n    at Module.require (node:internal/modules/cjs/loader:1143:19)\\n    at mod.require (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/require-hook.js:65:28)\\n    at require (node:internal/modules/cjs/helpers:119:18)\\n    at requirePage (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/require.js:103:84)\\n    at loadComponentsImpl (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/load-components.js:129:57)\\n    at async DevServer.findPageComponentsImpl (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/next-server.js:798:36)\\n    at async DevServer.findPageComponents (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/dev/next-dev-server.js:625:16)\\n    at async DevServer.renderPageComponent (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/base-server.js:2287:24)\\n    at async DevServer.renderToResponseImpl (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/base-server.js:2338:32)\\n    at async DevServer.pipeImpl (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/base-server.js:954:25)\\n    at async NextNodeServer.handleCatchallRenderRequest (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/next-server.js:294:17)\\n    at async DevServer.handleRequestImpl (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/base-server.js:847:17)\\n    at async /tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/dev/next-dev-server.js:371:20\\n    at async Span.traceAsyncFn (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/trace/trace.js:156:20)\\n    at async DevServer.handleRequest (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/dev/next-dev-server.js:368:24)\\n    at async invokeRender (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/lib/router-server.js:233:21)\\n    at async handleRequest (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/lib/router-server.js:417:24)\\n    at async requestHandlerImpl (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/lib/router-server.js:441:13)\\n    at async Server.requestListener (/tmp/next-test-gbnp2ibeqxa/app-turbo/node_modules/next/dist/server/lib/start-server.js:155:13)\"},\"gip\":true,\"scriptLoader\":[]}</script></body></html>"

  65 |     const res = await fetchViaHTTP(port, '/')
  66 |     if (isEmpty || isApi) {
> 67 |       expect(await res.text()).toContain('Hello world!')
     |                                ^
  68 |     } else {
  69 |       expect(await res.text()).toContain('Get started by editing')
  70 |     }

  at toContain (integration/create-next-app/utils.ts:67:32)
  at integration/create-next-app/templates/app-api.test.ts:179:7
  at useTempDir (lib/use-temp-dir.ts:24:5)
  at Object.<anonymous> (integration/create-next-app/templates/app-api.test.ts:157:5)

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.

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
  • Image Component from node_modules prod mode > production mode > should apply image config for node_modules
Expand output

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

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-image-from-node-modules/next.config.js
   Loading config from /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-image-from-node-modules/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-image-from-node-modules/next.config.js
   Building (0/3) ...
 ✓ Building (3/3)
 ✓ Compiled successfully in 1353ms
   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-image-from-node-modules/.next/server/chunks/ssr/[root of the server]__78b2fd._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-image-from-node-modules/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-image-from-node-modules/.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 externalRequire (../../../test/integration/next-image-new/app-dir-image-from-node-modules/.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-image-from-node-modules/.next/server/chunks/ssr/[root of the server]__78b2fd._.js:1:291)
  at instantiateModule (../../../test/integration/next-image-new/app-dir-image-from-node-modules/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir-image-from-node-modules/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir-image-from-node-modules/.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-image-from-node-modules/.next/server/chunks/ssr/packages_next_dist_cf9bc1._.js:1:873)
  at instantiateModule (../../../test/integration/next-image-new/app-dir-image-from-node-modules/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir-image-from-node-modules/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir-image-from-node-modules/.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-image-from-node-modules/.next/server/chunks/ssr/packages_next_dist_cf9bc1._.js:2:20930)
  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-image-from-node-modules/.next/server/chunks/ssr/[root of the server]__78b2fd._.js
  - /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-image-from-node-modules/.next/server/chunks/ssr/[turbopack]_runtime.js
  - /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/app-dir-image-from-node-modules/.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/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-image-from-node-modules/.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-image-from-node-modules/.next/server/chunks/ssr/[root of the server]__78b2fd._.js:1:291)
  at instantiateModule (../../../test/integration/next-image-new/app-dir-image-from-node-modules/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir-image-from-node-modules/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir-image-from-node-modules/.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-image-from-node-modules/.next/server/chunks/ssr/packages_next_dist_cf9bc1._.js:1:873)
  at instantiateModule (../../../test/integration/next-image-new/app-dir-image-from-node-modules/.next/server/chunks/ssr/[turbopack]_runtime.js:590:23)
  at getOrInstantiateModuleFromParent (../../../test/integration/next-image-new/app-dir-image-from-node-modules/.next/server/chunks/ssr/[turbopack]_runtime.js:645:12)
  at commonJsRequire (../../../test/integration/next-image-new/app-dir-image-from-node-modules/.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-image-from-node-modules/.next/server/chunks/ssr/packages_next_dist_cf9bc1._.js:2:20930)
  > 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 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-dev.test.ts

  • app dir - with output export - dynamic page dev > development mode > should work in dev with dynamicPage undefined
  • app dir - with output export - dynamic page dev > development mode > should work in dev with dynamicPage 'error'
  • app dir - with output export - dynamic page dev > development mode > should work in dev with dynamicPage 'force-static'
  • app dir - with output export - dynamic page dev > development mode > should work in dev with dynamicPage 'force-dynamic'
Expand output

● app dir - with output export - dynamic page dev › development mode › should work in dev with dynamicPage undefined

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/dynamicpage-dev.test.ts:19:11

● app dir - with output export - dynamic page dev › development mode › should work in dev with dynamicPage 'error'

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/dynamicpage-dev.test.ts:19:11

● app dir - with output export - dynamic page dev › development mode › should work in dev with dynamicPage 'force-static'

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/dynamicpage-dev.test.ts:19:11

● app dir - with output export - dynamic page dev › development mode › should work in dev with dynamicPage 'force-dynamic'

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

Expected substring: "Page with `dynamic = \"force-dynamic\"` couldn't be exported. `output: \"export\"` requires all pages be renderable statically"
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/app-dir-export/.next/server/app/another/[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/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.
null"

  180 |         const header = await getRedboxHeader(browser)
  181 |         const source = await getRedboxSource(browser)
> 182 |         expect(`${header}\n${source}`).toContain(expectedErrMsg)
      |                                        ^
  183 |       } else {
  184 |         await check(() => result.stderr, /error/i)
  185 |       }

  at toContain (integration/app-dir-export/test/utils.ts:182:40)
  at integration/app-dir-export/test/dynamicpage-dev.test.ts:19:11

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

@sokra sokra changed the title enable production chunking for CSS too [Turbopack] enable production chunking for CSS too Jan 17, 2025
@sokra sokra requested a review from wbinnssmith January 17, 2025 20:42
@sokra sokra force-pushed the sokra/smarter-production-chunking branch from 05242ad to 82b22dc Compare January 17, 2025 20:46
@sokra sokra force-pushed the sokra/css-production-chunking branch from 65a7744 to 656dbc5 Compare January 17, 2025 20:46
@sokra sokra force-pushed the sokra/smarter-production-chunking branch from 192e36a to e6b3f02 Compare January 20, 2025 08:54
@sokra sokra force-pushed the sokra/smarter-production-chunking branch from e6b3f02 to 718dcfc Compare January 20, 2025 08:54
@sokra sokra force-pushed the sokra/css-production-chunking branch from 656dbc5 to 524194d Compare January 20, 2025 08:55
@mischnic mischnic force-pushed the sokra/smarter-production-chunking branch from c6cdfc7 to 682eef3 Compare January 20, 2025 12:27
Base automatically changed from sokra/smarter-production-chunking to canary January 20, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
created-by: Turbopack team PRs by the Turbopack team. Turbopack Related to Turbopack with Next.js.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants