Skip to content

Conversation

@sokra
Copy link
Member

@sokra sokra commented Jan 19, 2026

What?

Use selective reads to read defined env vars in module analysis.

This allows to add/remove env vars without invalidating all modules.

@sokra sokra changed the base branch from sokra/operation-vc-for-global-info to graphite-base/88759 January 19, 2026 18:00
@sokra sokra force-pushed the sokra/selective-env-vars branch from e6f15e9 to 4096331 Compare January 19, 2026 18:00
@sokra sokra force-pushed the graphite-base/88759 branch from 8c6302c to 2494303 Compare January 19, 2026 18:00
@sokra sokra changed the title Turbopack: improve selective read support to allow Equivalent keys Turbopack: selective reads of defined env vars in module analysis Jan 19, 2026
@sokra sokra changed the base branch from graphite-base/88759 to sokra/equivalent-selective-read January 19, 2026 18:01
@nextjs-bot
Copy link
Collaborator

nextjs-bot commented Jan 19, 2026

Failing test suites

Commit: 4096331 | About building and testing Next.js

pnpm test-dev test/e2e/app-dir/next-config-ts-native-ts/dynamic-import-esm/next-config-ts-dynamic-import-esm.test.ts (job)

  • next-config-ts-type-error-esm > should throw with type error on build (ESM) (DD)
Expand output

● next-config-ts-type-error-esm › should throw with type error on build (ESM)

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

Expected: "foo"
Received: ""

  25 |       await next.start()
  26 |       const $ = await next.render$('/')
> 27 |       expect($('p').text()).toBe('foo')
     |                             ^
  28 |     } else {
  29 |       const { cliOutput } = await next.build()
  30 |       await expect(cliOutput).toContain(

  at Object.toBe (e2e/app-dir/next-config-ts-native-mts/type-error/next-config-ts-type-error-esm.test.ts:27:29)

pnpm test-dev test/e2e/app-dir/next-config-ts-native-ts/async-function/async-function-esm.test.ts (job)

  • next-config-ts-type-error-cjs > should throw with type error on build (CJS) (DD)
Expand output

● next-config-ts-type-error-cjs › should throw with type error on build (CJS)

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

Expected: "foo"
Received: ""

  22 |       await next.start()
  23 |       const $ = await next.render$('/')
> 24 |       expect($('p').text()).toBe('foo')
     |                             ^
  25 |     } else {
  26 |       const { cliOutput } = await next.build()
  27 |       await expect(cliOutput).toContain(

  at Object.toBe (e2e/app-dir/next-config-ts-native-mts/type-error/next-config-ts-type-error-cjs.test.ts:24:29)

pnpm test-start test/e2e/app-dir/next-config-ts-native-ts/export-as-default/next-config-ts-export-as-default-cjs.test.ts (job)

  • next-config-ts-top-level-await-esm > should support top-level await (ESM) (DD)
Expand output

● next-config-ts-top-level-await-esm › should support top-level await (ESM)

next build failed with code/signal 1

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

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

pnpm test-start test/e2e/app-dir/next-config-ts-native-ts/export-default/next-config-ts-export-default-esm.test.ts (job)

  • next-config-ts-node-api-cjs > should be able to use Node.js API (CJS) (DD)
Expand output

● next-config-ts-node-api-cjs › should be able to use Node.js API (CJS)

next build failed with code/signal 1

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

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

pnpm test test/integration/css-minify/test/index.test.ts (turbopack) (job)

  • Unoptimized Image Tests > development mode - component > should not optimize any image (DD)
  • Unoptimized Image Tests > development mode - getImageProps > should not optimize any image (DD)
  • Unoptimized Image Tests > production mode - component > should not optimize any image (DD)
  • Unoptimized Image Tests > production mode - component > should build correct images-manifest.json (DD)
  • Unoptimized Image Tests > production mode - getImageProps > should not optimize any image (DD)
  • Unoptimized Image Tests > production mode - getImageProps > should build correct images-manifest.json (DD)
Expand output

● Unoptimized Image Tests › development mode - component › should not optimize any image

page.waitForSelector: Timeout 5000ms exceeded.
Call log:
  - waiting for locator('#internal-image') to be visible

  519 |
  520 |     return this.startChain(async () => {
> 521 |       const el = await page.waitForSelector(selector, {
      |                             ^
  522 |         timeout,
  523 |         state,
  524 |       })

  at waitForSelector (lib/browsers/playwright.ts:521:29)
  at Playwright._chain (lib/browsers/playwright.ts:651:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:632:17)
  at Playwright.startChain [as waitForElementByCss] (lib/browsers/playwright.ts:520:17)
  at Playwright.waitForElementByCss [as elementByCss] (lib/browsers/playwright.ts:405:17)
  at Playwright.elementByCss [as elementById] (lib/browsers/playwright.ts:425:17)
  at Object.elementById (integration/next-image-new/unoptimized/test/index.test.ts:23:21)
  at Proxy._chain (lib/browsers/playwright.ts:651:23)
  at Proxy._chain (lib/browsers/playwright.ts:627:17)
  at Proxy.continueChain (lib/browsers/playwright.ts:455:17)
  at Object.getAttribute (integration/next-image-new/unoptimized/test/index.test.ts:23:51)

● Unoptimized Image Tests › production mode - component › should not optimize any image

command failed with code 1 signal null
▲ Next.js 16.1.1-canary.33 (Turbopack)
- Experiments (use with caution):
  ✓ strictRouteTypes (enabled by `__NEXT_EXPERIMENTAL_STRICT_ROUTE_TYPES`)

  Running TypeScript ...
  Finished TypeScript in 39ms ...
  Creating an optimized production build ...
✓ Compiled successfully in 196ms
  Collecting page data using 19 workers ...
unhandledRejection Error: Cannot find module './dist/pages/_document'
Require stack:
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/packages_next_document_7b563c16.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/unoptimized/.next/server/pages/_document.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:57:36)
  at mod.require (../dist/server/require-hook.js:68:28)
  at module evaluation (../../../test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/packages_next_document_7b563c16.js:1:42)
  at instantiateModule (../../../test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/[turbopack]_runtime.js:740:9)
  at instantiateRuntimeModule (../../../test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/[turbopack]_runtime.js:768:12)
  at getOrInstantiateRuntimeModule (../../../test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/[turbopack]_runtime.js:781:12) {
    type: 'Error',
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:325:11)

● Unoptimized Image Tests › production mode - component › should build correct images-manifest.json

command failed with code 1 signal null
▲ Next.js 16.1.1-canary.33 (Turbopack)
- Experiments (use with caution):
  ✓ strictRouteTypes (enabled by `__NEXT_EXPERIMENTAL_STRICT_ROUTE_TYPES`)

  Running TypeScript ...
  Finished TypeScript in 39ms ...
  Creating an optimized production build ...
✓ Compiled successfully in 196ms
  Collecting page data using 19 workers ...
unhandledRejection Error: Cannot find module './dist/pages/_document'
Require stack:
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/packages_next_document_7b563c16.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/unoptimized/.next/server/pages/_document.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:57:36)
  at mod.require (../dist/server/require-hook.js:68:28)
  at module evaluation (../../../test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/packages_next_document_7b563c16.js:1:42)
  at instantiateModule (../../../test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/[turbopack]_runtime.js:740:9)
  at instantiateRuntimeModule (../../../test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/[turbopack]_runtime.js:768:12)
  at getOrInstantiateRuntimeModule (../../../test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/[turbopack]_runtime.js:781:12) {
    type: 'Error',
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:325:11)

● Unoptimized Image Tests › development mode - getImageProps › should not optimize any image

page.waitForSelector: Timeout 5000ms exceeded.
Call log:
  - waiting for locator('#internal-image') to be visible

  519 |
  520 |     return this.startChain(async () => {
> 521 |       const el = await page.waitForSelector(selector, {
      |                             ^
  522 |         timeout,
  523 |         state,
  524 |       })

  at waitForSelector (lib/browsers/playwright.ts:521:29)
  at Playwright._chain (lib/browsers/playwright.ts:651:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:632:17)
  at Playwright.startChain [as waitForElementByCss] (lib/browsers/playwright.ts:520:17)
  at Playwright.waitForElementByCss [as elementByCss] (lib/browsers/playwright.ts:405:17)
  at Playwright.elementByCss [as elementById] (lib/browsers/playwright.ts:425:17)
  at Object.elementById (integration/next-image-new/unoptimized/test/index.test.ts:23:21)
  at Proxy._chain (lib/browsers/playwright.ts:651:23)
  at Proxy._chain (lib/browsers/playwright.ts:627:17)
  at Proxy.continueChain (lib/browsers/playwright.ts:455:17)
  at Object.getAttribute (integration/next-image-new/unoptimized/test/index.test.ts:23:51)

● Unoptimized Image Tests › production mode - getImageProps › should not optimize any image

command failed with code 1 signal null
▲ Next.js 16.1.1-canary.33 (Turbopack)
- Experiments (use with caution):
  ✓ strictRouteTypes (enabled by `__NEXT_EXPERIMENTAL_STRICT_ROUTE_TYPES`)

  Running TypeScript ...
  Finished TypeScript in 42ms ...
  Creating an optimized production build ...
✓ Compiled successfully in 202ms
  Collecting page data using 19 workers ...
Error: Cannot find module './dist/pages/_document'
Require stack:
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/packages_next_document_7b563c16.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/unoptimized/.next/server/pages/_document.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:57:36)
  at mod.require (../dist/server/require-hook.js:68:28)
  at module evaluation (../../../test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/packages_next_document_7b563c16.js:1:42)
  at instantiateModule (../../../test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/[turbopack]_runtime.js:740:9)
  at instantiateRuntimeModule (../../../test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/[turbopack]_runtime.js:768:12)
  at getOrInstantiateRuntimeModule (../../../test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/[turbopack]_runtime.js:781:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  > Build error occurred
  Error: Failed to collect page data for /
  at <unknown> (../dist/build/utils.js:849:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:325:11)

● Unoptimized Image Tests › production mode - getImageProps › should build correct images-manifest.json

command failed with code 1 signal null
▲ Next.js 16.1.1-canary.33 (Turbopack)
- Experiments (use with caution):
  ✓ strictRouteTypes (enabled by `__NEXT_EXPERIMENTAL_STRICT_ROUTE_TYPES`)

  Running TypeScript ...
  Finished TypeScript in 42ms ...
  Creating an optimized production build ...
✓ Compiled successfully in 202ms
  Collecting page data using 19 workers ...
Error: Cannot find module './dist/pages/_document'
Require stack:
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/packages_next_document_7b563c16.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/next-image-new/unoptimized/.next/server/pages/_document.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:57:36)
  at mod.require (../dist/server/require-hook.js:68:28)
  at module evaluation (../../../test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/packages_next_document_7b563c16.js:1:42)
  at instantiateModule (../../../test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/[turbopack]_runtime.js:740:9)
  at instantiateRuntimeModule (../../../test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/[turbopack]_runtime.js:768:12)
  at getOrInstantiateRuntimeModule (../../../test/integration/next-image-new/unoptimized/.next/server/chunks/ssr/[turbopack]_runtime.js:781:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  > Build error occurred
  Error: Failed to collect page data for /
  at <unknown> (../dist/build/utils.js:849:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:325:11)

pnpm test test/integration/export-fallback-true-error/test/index.test.ts (turbopack) (job)

  • create-next-app --no-app (Pages Router) > should create JavaScript project with --js flag (DD)
  • create-next-app --no-app (Pages Router) > should create TypeScript project with --ts flag (DD)
  • create-next-app --no-app (Pages Router) > should create project inside "src" directory with --src-dir flag (DD)
  • create-next-app --no-app (Pages Router) > should create TailwindCSS project with --tailwind flag (DD)
  • create-next-app --no-app (Pages Router) > should create an empty project with --empty flag (DD)
  • create-next-app --no-app (Pages Router) > should create an empty TailwindCSS project with --empty flag (DD)
Expand output

● create-next-app --no-app (Pages Router) › should create JavaScript project with --js flag

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

Expected: true
Received: false

  75 |         responseText.includes('To get started, edit the index.tsx file.') ||
  76 |         responseText.includes('To get started, edit the index.js file.')
> 77 |       expect(hasAppRouterText || hasPagesRouterText).toBe(true)
     |                                                      ^
  78 |     }
  79 |     expect(res.status).toBe(200)
  80 |

  at toBe (integration/create-next-app/utils.ts:77:54)
  at integration/create-next-app/templates/pages.test.ts:53:7
  at useTempDir (lib/use-temp-dir.ts:24:5)
  at Object.<anonymous> (integration/create-next-app/templates/pages.test.ts:26:5)

● create-next-app --no-app (Pages Router) › should create TypeScript project with --ts flag

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

Expected: true
Received: false

  75 |         responseText.includes('To get started, edit the index.tsx file.') ||
  76 |         responseText.includes('To get started, edit the index.js file.')
> 77 |       expect(hasAppRouterText || hasPagesRouterText).toBe(true)
     |                                                      ^
  78 |     }
  79 |     expect(res.status).toBe(200)
  80 |

  at toBe (integration/create-next-app/utils.ts:77:54)
  at integration/create-next-app/templates/pages.test.ts:89:7
  at useTempDir (lib/use-temp-dir.ts:24:5)
  at Object.<anonymous> (integration/create-next-app/templates/pages.test.ts:62:5)

● create-next-app --no-app (Pages Router) › should create project inside "src" directory with --src-dir flag

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

Expected: true
Received: false

  75 |         responseText.includes('To get started, edit the index.tsx file.') ||
  76 |         responseText.includes('To get started, edit the index.js file.')
> 77 |       expect(hasAppRouterText || hasPagesRouterText).toBe(true)
     |                                                      ^
  78 |     }
  79 |     expect(res.status).toBe(200)
  80 |

  at toBe (integration/create-next-app/utils.ts:77:54)
  at integration/create-next-app/templates/pages.test.ts:123:7
  at useTempDir (lib/use-temp-dir.ts:24:5)
  at Object.<anonymous> (integration/create-next-app/templates/pages.test.ts:95:5)

● create-next-app --no-app (Pages Router) › should create TailwindCSS project with --tailwind flag

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

Expected: true
Received: false

  75 |         responseText.includes('To get started, edit the index.tsx file.') ||
  76 |         responseText.includes('To get started, edit the index.js file.')
> 77 |       expect(hasAppRouterText || hasPagesRouterText).toBe(true)
     |                                                      ^
  78 |     }
  79 |     expect(res.status).toBe(200)
  80 |

  at toBe (integration/create-next-app/utils.ts:77:54)
  at integration/create-next-app/templates/pages.test.ts:161:7
  at useTempDir (lib/use-temp-dir.ts:24:5)
  at Object.<anonymous> (integration/create-next-app/templates/pages.test.ts:132:5)

● create-next-app --no-app (Pages Router) › should create an empty project with --empty 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 src=\"/_next/static/chunks/%5Broot-of-the-server%5D__ee5a73ec._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/src_pages__app_2da965e7._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/turbopack-src_pages__app_4e74575f._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/%5Broot-of-the-server%5D__6bc92fa3._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/src_pages__error_2da965e7._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/turbopack-src_pages__error_06ca34ba._.js\" defer=\"\"></script><script src=\"/_next/static/development/_buildManifest.js\" defer=\"\"></script><script src=\"/_next/static/development/_ssgManifest.js\" defer=\"\"></script><script src=\"/_next/static/development/_clientMiddlewareManifest.js\" defer=\"\"></script><noscript id=\"__next_css__DO_NOT_USE__\"></noscript></head><body><div id=\"__next\"></div><script id=\"__NEXT_DATA__\" type=\"application/json\">{\"props\":{\"pageProps\":{\"statusCode\":500,\"hostname\":\"[::]\"}},\"page\":\"/_error\",\"query\":{},\"buildId\":\"development\",\"isFallback\":false,\"err\":{\"name\":\"Error\",\"source\":\"server\",\"message\":\"Cannot find module './dist/pages/_document'\\nRequire stack:\\n- /tmp/next-test-56wgqlesasm/pages-empty/.next/dev/server/chunks/ssr/[root-of-the-server]__bdaaa84a._.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/.next/dev/server/chunks/ssr/[turbopack]_runtime.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/.next/dev/server/pages/_document.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/require.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/load-components.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/build/utils.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/build/swc/options.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/build/swc/index.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/build/next-config-ts/transpile-config.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/config.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/next.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/lib/start-server.js\",\"stack\":\"Error: Cannot find module './dist/pages/_document'\\nRequire stack:\\n- /tmp/next-test-56wgqlesasm/pages-empty/.next/dev/server/chunks/ssr/[root-of-the-server]__bdaaa84a._.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/.next/dev/server/chunks/ssr/[turbopack]_runtime.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/.next/dev/server/pages/_document.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/require.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/load-components.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/build/utils.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/build/swc/options.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/build/swc/index.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/build/next-config-ts/transpile-config.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/config.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/next.js\\n- /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/lib/start-server.js\\n    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)\\n    at /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/require-hook.js:57: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-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/require-hook.js:68:28)\\n    at require (node:internal/modules/helpers:130:18)\\n    at module evaluation (/tmp/next-test-56wgqlesasm/pages-empty/.next/dev/server/chunks/ssr/[root-of-the-server]__bdaaa84a._.js:56:18)\\n    at instantiateModule (/tmp/next-test-56wgqlesasm/pages-empty/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:740:9)\\n    at getOrInstantiateModuleFromParent (/tmp/next-test-56wgqlesasm/pages-empty/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:763:12)\\n    at Context.esmImport [as i] (/tmp/next-test-56wgqlesasm/pages-empty/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:228:20)\\n    at module evaluation (/tmp/next-test-56wgqlesasm/pages-empty/.next/dev/server/chunks/ssr/[root-of-the-server]__bdaaa84a._.js:16:151)\\n    at instantiateModule (/tmp/next-test-56wgqlesasm/pages-empty/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:740:9)\\n    at instantiateRuntimeModule (/tmp/next-test-56wgqlesasm/pages-empty/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:768:12)\\n    at getOrInstantiateRuntimeModule (/tmp/next-test-56wgqlesasm/pages-empty/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:781:12)\\n    at Object.m (/tmp/next-test-56wgqlesasm/pages-empty/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:790:18)\\n    at Object.\\u003canonymous\\u003e (/tmp/next-test-56wgqlesasm/pages-empty/.next/dev/server/pages/_document.js:3: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-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/require-hook.js:68:28)\\n    at require (node:internal/modules/helpers:130:18)\\n    at requirePage (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/require.js:105:80)\\n    at loadComponentsImpl (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/load-components.js:88:38)\\n    at DevServer.findPageComponentsImpl (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/next-server.js:894:77)\\n    at /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/next-server.js:876:21\\n    at /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/lib/trace/tracer.js:185:36\\n    at NoopContextManager.with (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062)\\n    at ContextAPI.with (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518)\\n    at NoopTracer.startActiveSpan (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18093)\\n    at ProxyTracer.startActiveSpan (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18854)\\n    at /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/lib/trace/tracer.js:154:103\\n    at NoopContextManager.with (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062)\\n    at ContextAPI.with (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518)\\n    at NextTracerImpl.trace (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/lib/trace/tracer.js:154:28)\\n    at DevServer.findPageComponents (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/next-server.js:871:41)\\n    at DevServer.findPageComponents (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/dev/next-dev-server.js:691:28)\\n    at async DevServer.renderPageComponent (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/base-server.js:1480:24)\\n    at async DevServer.renderToResponseImpl (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/base-server.js:1544:32)\\n    at async DevServer.pipeImpl (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/base-server.js:1038:25)\\n    at async NextNodeServer.handleCatchallRenderRequest (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/next-server.js:412:17)\\n    at async DevServer.handleRequestImpl (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/base-server.js:929:17)\\n    at async /tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/dev/next-dev-server.js:387:20\\n    at async Span.traceAsyncFn (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/trace/trace.js:157:20)\\n    at async DevServer.handleRequest (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/dev/next-dev-server.js:383:24)\\n    at async invokeRender (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/lib/router-server.js:252:21)\\n    at async handleRequest (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/lib/router-server.js:451:24)\\n    at async requestHandlerImpl (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/lib/router-server.js:500:13)\\n    at async Server.requestListener (/tmp/next-test-56wgqlesasm/pages-empty/node_modules/next/dist/server/lib/start-server.js:224: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 |       const responseText = await res.text()
  70 |       // App Router uses page.tsx/page.js, Pages Router uses index.tsx/index.js

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

● create-next-app --no-app (Pages Router) › should create an empty TailwindCSS project with --empty 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 src=\"/_next/static/chunks/%5Broot-of-the-server%5D__ee5a73ec._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/src_pages__app_2da965e7._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/turbopack-src_pages__app_4e74575f._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/%5Broot-of-the-server%5D__6bc92fa3._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/src_pages__error_2da965e7._.js\" defer=\"\"></script><script src=\"/_next/static/chunks/turbopack-src_pages__error_06ca34ba._.js\" defer=\"\"></script><script src=\"/_next/static/development/_buildManifest.js\" defer=\"\"></script><script src=\"/_next/static/development/_ssgManifest.js\" defer=\"\"></script><script src=\"/_next/static/development/_clientMiddlewareManifest.js\" defer=\"\"></script><noscript id=\"__next_css__DO_NOT_USE__\"></noscript></head><body><div id=\"__next\"></div><script id=\"__NEXT_DATA__\" type=\"application/json\">{\"props\":{\"pageProps\":{\"statusCode\":500,\"hostname\":\"[::]\"}},\"page\":\"/_error\",\"query\":{},\"buildId\":\"development\",\"isFallback\":false,\"err\":{\"name\":\"Error\",\"source\":\"server\",\"message\":\"Cannot find module './dist/pages/_document'\\nRequire stack:\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/.next/dev/server/chunks/ssr/[root-of-the-server]__bdaaa84a._.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/.next/dev/server/chunks/ssr/[turbopack]_runtime.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/.next/dev/server/pages/_document.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/require.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/load-components.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/build/utils.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/build/swc/options.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/build/swc/index.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/build/next-config-ts/transpile-config.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/config.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/next.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/lib/start-server.js\",\"stack\":\"Error: Cannot find module './dist/pages/_document'\\nRequire stack:\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/.next/dev/server/chunks/ssr/[root-of-the-server]__bdaaa84a._.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/.next/dev/server/chunks/ssr/[turbopack]_runtime.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/.next/dev/server/pages/_document.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/require.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/load-components.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/build/utils.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/build/swc/options.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/build/swc/index.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/build/next-config-ts/transpile-config.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/config.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/next.js\\n- /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/lib/start-server.js\\n    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)\\n    at /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/require-hook.js:57: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-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/require-hook.js:68:28)\\n    at require (node:internal/modules/helpers:130:18)\\n    at module evaluation (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/.next/dev/server/chunks/ssr/[root-of-the-server]__bdaaa84a._.js:56:18)\\n    at instantiateModule (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:740:9)\\n    at getOrInstantiateModuleFromParent (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:763:12)\\n    at Context.esmImport [as i] (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:228:20)\\n    at module evaluation (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/.next/dev/server/chunks/ssr/[root-of-the-server]__bdaaa84a._.js:16:151)\\n    at instantiateModule (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:740:9)\\n    at instantiateRuntimeModule (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:768:12)\\n    at getOrInstantiateRuntimeModule (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:781:12)\\n    at Object.m (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:790:18)\\n    at Object.\\u003canonymous\\u003e (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/.next/dev/server/pages/_document.js:3: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-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/require-hook.js:68:28)\\n    at require (node:internal/modules/helpers:130:18)\\n    at requirePage (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/require.js:105:80)\\n    at loadComponentsImpl (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/load-components.js:88:38)\\n    at DevServer.findPageComponentsImpl (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/next-server.js:894:77)\\n    at /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/next-server.js:876:21\\n    at /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/lib/trace/tracer.js:185:36\\n    at NoopContextManager.with (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062)\\n    at ContextAPI.with (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518)\\n    at NoopTracer.startActiveSpan (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18093)\\n    at ProxyTracer.startActiveSpan (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18854)\\n    at /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/lib/trace/tracer.js:154:103\\n    at NoopContextManager.with (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062)\\n    at ContextAPI.with (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518)\\n    at NextTracerImpl.trace (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/lib/trace/tracer.js:154:28)\\n    at DevServer.findPageComponents (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/next-server.js:871:41)\\n    at DevServer.findPageComponents (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/dev/next-dev-server.js:691:28)\\n    at async DevServer.renderPageComponent (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/base-server.js:1480:24)\\n    at async DevServer.renderToResponseImpl (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/base-server.js:1544:32)\\n    at async DevServer.pipeImpl (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/base-server.js:1038:25)\\n    at async NextNodeServer.handleCatchallRenderRequest (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/next-server.js:412:17)\\n    at async DevServer.handleRequestImpl (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/base-server.js:929:17)\\n    at async /tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/dev/next-dev-server.js:387:20\\n    at async Span.traceAsyncFn (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/trace/trace.js:157:20)\\n    at async DevServer.handleRequest (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/dev/next-dev-server.js:383:24)\\n    at async invokeRender (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/lib/router-server.js:252:21)\\n    at async handleRequest (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/lib/router-server.js:451:24)\\n    at async requestHandlerImpl (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/lib/router-server.js:500:13)\\n    at async Server.requestListener (/tmp/next-test-5mfnwzfxz08/pages-tw-empty/node_modules/next/dist/server/lib/start-server.js:224: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 |       const responseText = await res.text()
  70 |       // App Router uses page.tsx/page.js, Pages Router uses index.tsx/index.js

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

pnpm test test/integration/app-functional/test/index.test.ts (turbopack) (job)

  • Data URLs > production mode > should compile successfully (DD)
  • Data URLs > production mode > should have emitted expected files (DD)
  • Ordering with Global CSS and Modules (dev) > useLightnincsss(false) > should have the correct color (css ordering) (DD)
  • Ordering with Global CSS and Modules (dev) > useLightnincsss(false) > should have the correct color (css ordering) during hot reloads (DD)
  • Ordering with Global CSS and Modules (dev) > useLightnincsss(true) > should have the correct color (css ordering) (DD)
  • Ordering with Global CSS and Modules (dev) > useLightnincsss(true) > should have the correct color (css ordering) during hot reloads (DD)
  • Ordering with Global CSS and Modules (prod) > production mode > useLightnincsss(false) > should have compiled successfully (DD)
  • Ordering with Global CSS and Modules (prod) > production mode > useLightnincsss(false) > should have the correct color (css ordering) (DD)
  • Ordering with Global CSS and Modules (prod) > production mode > useLightnincsss(true) > should have compiled successfully (DD)
  • Ordering with Global CSS and Modules (prod) > production mode > useLightnincsss(true) > should have the correct color (css ordering) (DD)
  • should handle unresolved files gracefully > production mode > should build correctly (DD)
  • should handle unresolved files gracefully > production mode > should have correct file references in CSS output (DD)
Expand output

● should handle unresolved files gracefully › production mode › should build correctly

command failed with code 1 signal null
▲ Next.js 16.1.1-canary.33 (Turbopack)
- Experiments (use with caution):
  ✓ strictRouteTypes (enabled by `__NEXT_EXPERIMENTAL_STRICT_ROUTE_TYPES`)

  Running TypeScript ...
  Finished TypeScript in 35ms ...
  Creating an optimized production build ...

> Build error occurred
Error: Turbopack build failed with 1 errors:
./test/integration/css-fixtures/unresolved-css-url/pages/another.module.scss
Error evaluating Node.js code
Error: Cannot find module '@vercel/turbopack/loader-runner'
Require stack:
- /root/actions-runner/_work/next.js/next.js/test/integration/css-fixtures/unresolved-css-url/.next/build/chunks/[root-of-the-server]__82f8dbaa._.js
- /root/actions-runner/_work/next.js/next.js/test/integration/css-fixtures/unresolved-css-url/.next/build/chunks/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/css-fixtures/unresolved-css-url/.next/build/webpack-loaders.js
    [at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)]
    [at Module._load (node:internal/modules/cjs/loader:901:27)]
    [at Module.require (node:internal/modules/cjs/loader:1115:19)]
    [at require (node:internal/modules/helpers:130:18)]

  at require (../turbopack:/[turbopack-node]/transforms/webpack-loaders.ts:60:37) [/root/actions-runner/_work/next.js/next.js/test/integration/css-fixtures/unresolved-css-url/.next/build/chunks/[root-of-the-server]__82f8dbaa._.js:80:24]
  at moduleFactory (../turbopack:/[turbopack]/nodejs/runtime.ts:226:5) [/root/actions-runner/_work/next.js/next.js/test/integration/css-fixtures/unresolved-css-url/.next/build/chunks/[turbopack]_runtime.js:740:9]
  at instantiateModule (../turbopack:/[turbopack]/nodejs/runtime.ts:259:10) [/root/actions-runner/_work/next.js/next.js/test/integration/css-fixtures/unresolved-css-url/.next/build/chunks/[turbopack]_runtime.js:763:12]
  at getOrInstantiateModuleFromParent (../turbopack:/[turbopack]/shared/runtime-utils.ts:347:18) [/root/actions-runner/_work/next.js/next.js/test/integration/css-fixtures/unresolved-css-url/.next/build/chunks/[turbopack]_runtime.js:228:20]
  [at /root/actions-runner/_work/next.js/next.js/test/integration/css-fixtures/unresolved-css-url/.next/build/chunks/[turbopack-node]_transforms_webpack-loaders_ts_1efa112f._.js:8:16]
  [at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
  Import trace:
    SSR:
      ./test/integration/css-fixtures/unresolved-css-url/pages/another.module.scss
      ./test/integration/css-fixtures/unresolved-css-url/pages/another.js
  at require (../turbopack:/[turbopack-node]/transforms/webpack-loaders.ts:60:37) [/root/actions-runner/_work/next.js/next.js/test/integration/css-fixtures/unresolved-css-url/.next/build/chunks/[root-of-the-server]__82f8dbaa._.js:80:24])
  at moduleFactory (../turbopack:/[turbopack]/nodejs/runtime.ts:226:5) [/root/actions-runner/_work/next.js/next.js/test/integration/css-fixtures/unresolved-css-url/.next/build/chunks/[turbopack]_runtime.js:740:9])
  at instantiateModule (../turbopack:/[turbopack]/nodejs/runtime.ts:259:10) [/root/actions-runner/_work/next.js/next.js/test/integration/css-fixtures/unresolved-css-url/.next/build/chunks/[turbopack]_runtime.js:763:12])
  at getOrInstantiateModuleFromParent (../turbopack:/[turbopack]/shared/runtime-utils.ts:347:18) [/root/actions-runner/_work/next.js/next.js/test/integration/css-fixtures/unresolved-css-url/.next/build/chunks/[turbopack]_runtime.js:228:20])
  at printBuildErrors (../dist/build/utils.js:351:37)
  at turbopackBuild (../dist/build/turbopack-build/impl.js:128:38)
  at async Object.workerMain (../dist/build/turbopack-build/impl.js:234:89)
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:325:11)

● should handle unresolved files gracefully › production mode › should have correct file references in CSS output

expect(received).not.toBeEmpty()

Expected value to not be empty received:
  []

  157 |           .sort()
  158 |
> 159 |         expect(cssFiles).not.toBeEmpty()
      |                              ^
  160 |
  161 |         for (const file of cssFiles) {
  162 |           const content = await readFile(join(cssFolder, file), 'utf8')

  at Object.toBeEmpty (integration/css/test/css-modules.test.ts:159:30)

● Data URLs › production mode › should compile successfully

command failed with code 1 signal null
▲ Next.js 16.1.1-canary.33 (Turbopack)
- Experiments (use with caution):
  ✓ strictRouteTypes (enabled by `__NEXT_EXPERIMENTAL_STRICT_ROUTE_TYPES`)

  Running TypeScript ...
  Finished TypeScript in 36ms ...
  Creating an optimized production build ...
✓ Compiled successfully in 240ms
  Collecting page data using 19 workers ...
unhandledRejection Error: Cannot find module './dist/pages/_document'
Require stack:
- /root/actions-runner/_work/next.js/next.js/test/integration/css-fixtures/data-url/.next/server/chunks/ssr/packages_next_document_7b563c16.js
- /root/actions-runner/_work/next.js/next.js/test/integration/css-fixtures/data-url/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/css-fixtures/data-url/.next/server/pages/_document.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:57:36)
  at mod.require (../dist/server/require-hook.js:68:28)
  at module evaluation (../../../test/integration/css-fixtures/data-url/.next/server/chunks/ssr/packages_next_document_7b563c16.js:1:42)
  at instantiateModule (../../../test/integration/css-fixtures/data-url/.next/server/chunks/ssr/[turbopack]_runtime.js:740:9)
  at instantiateRuntimeModule (../../../test/integration/css-fixtures/data-url/.next/server/chunks/ssr/[turbopack]_runtime.js:768:12)
  at getOrInstantiateRuntimeModule (../../../test/integration/css-fixtures/data-url/.next/server/chunks/ssr/[turbopack]_runtime.js:781:12) {
    type: 'Error',
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:325:11)

● Data URLs › production mode › should have emitted expected files

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

Expected: 1
Received: 0

  201 |           .filter((f) => f.endsWith('.css'))
  202 |
> 203 |         expect(cssFiles.length).toBe(1)
      |                                 ^
  204 |         const cssContent = await readFile(join(cssFolder, cssFiles[0]), 'utf8')
  205 |         expect(cssContent.replace(/\/\*.*?\*\/n/g, '').trim()).toMatch(
  206 |           /background:url\("?data:[^"]+"?\)/

  at Object.toBe (integration/css/test/css-modules.test.ts:203:33)

● Ordering with Global CSS and Modules (dev) › useLightnincsss(true) › should have the correct color (css ordering)

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `Ordering with Global CSS and Modules (dev) useLightnincsss(true) should have the correct color (css ordering) 1`

Snapshot: "rgb(0, 0, 255)"
Received: null

  263 |         `window.getComputedStyle(document.querySelector('#blueText')).color`
  264 |       )
> 265 |       expect(currentColor).toMatchInlineSnapshot(`"rgb(0, 0, 255)"`)
      |                            ^
  266 |     })
  267 |
  268 |     it('should have the correct color (css ordering) during hot reloads', async () => {

  at Object.toMatchInlineSnapshot (integration/css/test/css-modules.test.ts:265:28)

● Ordering with Global CSS and Modules (dev) › useLightnincsss(true) › should have the correct color (css ordering) during hot reloads

TIMED OUT: rgb(1, 1, 1)

null

undefined

  724 |   }
  725 |   console.error('TIMED OUT CHECK: ', { regex, content, lastErr })
> 726 |   throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |         ^
  727 | }
  728 |
  729 | export class File {

  at check (lib/next-test-utils.ts:726:9)
  at Object.<anonymous> (integration/css/test/css-modules.test.ts:286:11)

● Ordering with Global CSS and Modules (dev) › useLightnincsss(true) › should have the correct color (css ordering) during hot reloads

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `Ordering with Global CSS and Modules (dev) useLightnincsss(true) should have the correct color (css ordering) during hot reloads 1`

Snapshot: "rgb(0, 0, 255)"
Received: null

  274 |           `window.getComputedStyle(document.querySelector('#blueText')).color`
  275 |         )
> 276 |         expect(blueColor).toMatchInlineSnapshot(`"rgb(0, 0, 255)"`)
      |                           ^
  277 |
  278 |         const yellowColor = await browser.eval(
  279 |           `window.getComputedStyle(document.querySelector('#yellowText')).color`

  at Object.toMatchInlineSnapshot (integration/css/test/css-modules.test.ts:276:27)

● Ordering with Global CSS and Modules (dev) › useLightnincsss(true) › should have the correct color (css ordering) during hot reloads

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `Ordering with Global CSS and Modules (dev) useLightnincsss(true) should have the correct color (css ordering) during hot reloads 2`

Snapshot: "rgb(255, 255, 0)"
Received: null

  279 |           `window.getComputedStyle(document.querySelector('#yellowText')).color`
  280 |         )
> 281 |         expect(yellowColor).toMatchInlineSnapshot(`"rgb(255, 255, 0)"`)
      |                             ^
  282 |
  283 |         const cssFile = new File(join(appDir, 'pages/index.module.css'))
  284 |         try {

  at Object.toMatchInlineSnapshot (integration/css/test/css-modules.test.ts:281:29)

● Ordering with Global CSS and Modules (dev) › useLightnincsss(false) › should have the correct color (css ordering)

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `Ordering with Global CSS and Modules (dev) useLightnincsss(false) should have the correct color (css ordering) 1`

Snapshot: "rgb(0, 0, 255)"
Received: null

  263 |         `window.getComputedStyle(document.querySelector('#blueText')).color`
  264 |       )
> 265 |       expect(currentColor).toMatchInlineSnapshot(`"rgb(0, 0, 255)"`)
      |                            ^
  266 |     })
  267 |
  268 |     it('should have the correct color (css ordering) during hot reloads', async () => {

  at Object.toMatchInlineSnapshot (integration/css/test/css-modules.test.ts:265:28)

● Ordering with Global CSS and Modules (dev) › useLightnincsss(false) › should have the correct color (css ordering) during hot reloads

TIMED OUT: rgb(1, 1, 1)

null

undefined

  724 |   }
  725 |   console.error('TIMED OUT CHECK: ', { regex, content, lastErr })
> 726 |   throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |         ^
  727 | }
  728 |
  729 | export class File {

  at check (lib/next-test-utils.ts:726:9)
  at Object.<anonymous> (integration/css/test/css-modules.test.ts:286:11)

● Ordering with Global CSS and Modules (dev) › useLightnincsss(false) › should have the correct color (css ordering) during hot reloads

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `Ordering with Global CSS and Modules (dev) useLightnincsss(false) should have the correct color (css ordering) during hot reloads 1`

Snapshot: "rgb(0, 0, 255)"
Received: null

  274 |           `window.getComputedStyle(document.querySelector('#blueText')).color`
  275 |         )
> 276 |         expect(blueColor).toMatchInlineSnapshot(`"rgb(0, 0, 255)"`)
      |                           ^
  277 |
  278 |         const yellowColor = await browser.eval(
  279 |           `window.getComputedStyle(document.querySelector('#yellowText')).color`

  at Object.toMatchInlineSnapshot (integration/css/test/css-modules.test.ts:276:27)

● Ordering with Global CSS and Modules (dev) › useLightnincsss(false) › should have the correct color (css ordering) during hot reloads

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `Ordering with Global CSS and Modules (dev) useLightnincsss(false) should have the correct color (css ordering) during hot reloads 2`

Snapshot: "rgb(255, 255, 0)"
Received: null

  279 |           `window.getComputedStyle(document.querySelector('#yellowText')).color`
  280 |         )
> 281 |         expect(yellowColor).toMatchInlineSnapshot(`"rgb(255, 255, 0)"`)
      |                             ^
  282 |
  283 |         const cssFile = new File(join(appDir, 'pages/index.module.css'))
  284 |         try {

  at Object.toMatchInlineSnapshot (integration/css/test/css-modules.test.ts:281:29)

● Ordering with Global CSS and Modules (prod) › production mode › useLightnincsss(true) › should have compiled successfully

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

Expected: 0
Received: 1

  348 |
  349 |         it('should have compiled successfully', () => {
> 350 |           expect(code).toBe(0)
      |                        ^
  351 |           expect(stdout).toMatch(/Compiled successfully/)
  352 |         })
  353 |

  at Object.toBe (integration/css/test/css-modules.test.ts:350:24)

● Ordering with Global CSS and Modules (prod) › production mode › useLightnincsss(true) › should have the correct color (css ordering)

page.goto: net::ERR_CONNECTION_RESET at http://localhost:39755/
Call log:
  - navigating to "http://localhost:39755/", waiting until "load"

  343 |     await opts?.beforePageLoad?.(page)
  344 |
> 345 |     await page.goto(url, { waitUntil: opts?.waitUntil ?? 'load' })
      |                ^
  346 |   }
  347 |
  348 |   back(options?: Parameters<Page['goBack']>[0]) {

  at Playwright.goto (lib/browsers/playwright.ts:345:16)
  at webdriver (lib/next-webdriver.ts:156:3)
  at Object.<anonymous> (integration/css/test/css-modules.test.ts:355:27)

● Ordering with Global CSS and Modules (prod) › production mode › useLightnincsss(false) › should have compiled successfully

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

Expected: 0
Received: 1

  348 |
  349 |         it('should have compiled successfully', () => {
> 350 |           expect(code).toBe(0)
      |                        ^
  351 |           expect(stdout).toMatch(/Compiled successfully/)
  352 |         })
  353 |

  at Object.toBe (integration/css/test/css-modules.test.ts:350:24)

● Ordering with Global CSS and Modules (prod) › production mode › useLightnincsss(false) › should have the correct color (css ordering)

page.goto: net::ERR_CONNECTION_REFUSED at http://localhost:41699/
Call log:
  - navigating to "http://localhost:41699/", waiting until "load"

  343 |     await opts?.beforePageLoad?.(page)
  344 |
> 345 |     await page.goto(url, { waitUntil: opts?.waitUntil ?? 'load' })
      |                ^
  346 |   }
  347 |
  348 |   back(options?: Parameters<Page['goBack']>[0]) {

  at Playwright.goto (lib/browsers/playwright.ts:345:16)
  at webdriver (lib/next-webdriver.ts:156:3)
  at Object.<anonymous> (integration/css/test/css-modules.test.ts:355:27)

pnpm test test/integration/client-shallow-routing/test/index.test.ts (turbopack) (job)

  • Auto Export > dev > Supports commonjs 1 (DD)
  • Auto Export > dev > Supports commonjs 2 (DD)
  • Auto Export > dev > Refreshes query on mount (DD)
  • Auto Export > dev > should update asPath after mount (DD)
  • Auto Export > dev > should not replace URL with page name while asPath is delayed (DD)
  • Auto Export > dev > should not show hydration warning from mismatching asPath (DD)
  • Auto Export > production mode > Supports commonjs 1 (DD)
  • Auto Export > production mode > Supports commonjs 2 (DD)
  • Auto Export > production mode > Refreshes query on mount (DD)
  • Auto Export > production mode > should update asPath after mount (DD)
  • Auto Export > production mode > should not replace URL with page name while asPath is delayed (DD)
Expand output

● Auto Export › production mode › Supports commonjs 1

command failed with code 1 signal null
▲ Next.js 16.1.1-canary.33 (Turbopack)
- Experiments (use with caution):
  ✓ strictRouteTypes (enabled by `__NEXT_EXPERIMENTAL_STRICT_ROUTE_TYPES`)

  Running TypeScript ...
  Finished TypeScript in 34ms ...
  Creating an optimized production build ...
✓ Compiled successfully in 236ms
  Collecting page data using 19 workers ...
Error: Cannot find module './dist/pages/_document'
Require stack:
- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/server/chunks/ssr/packages_next_document_7b563c16.js
- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/server/pages/_document.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:57:36)
  at mod.require (../dist/server/require-hook.js:68:28)
  at module evaluation (../../../test/integration/auto-export/.next/server/chunks/ssr/packages_next_document_7b563c16.js:1:42)
  at instantiateModule (../../../test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js:740:9)
  at instantiateRuntimeModule (../../../test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js:768:12)
  at getOrInstantiateRuntimeModule (../../../test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js:781:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  > Build error occurred
  Error: Failed to collect page data for /[post]/[cmnt]
  at <unknown> (../dist/build/utils.js:849:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:325:11)

● Auto Export › production mode › Supports commonjs 2

command failed with code 1 signal null
▲ Next.js 16.1.1-canary.33 (Turbopack)
- Experiments (use with caution):
  ✓ strictRouteTypes (enabled by `__NEXT_EXPERIMENTAL_STRICT_ROUTE_TYPES`)

  Running TypeScript ...
  Finished TypeScript in 34ms ...
  Creating an optimized production build ...
✓ Compiled successfully in 236ms
  Collecting page data using 19 workers ...
Error: Cannot find module './dist/pages/_document'
Require stack:
- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/server/chunks/ssr/packages_next_document_7b563c16.js
- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/server/pages/_document.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:57:36)
  at mod.require (../dist/server/require-hook.js:68:28)
  at module evaluation (../../../test/integration/auto-export/.next/server/chunks/ssr/packages_next_document_7b563c16.js:1:42)
  at instantiateModule (../../../test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js:740:9)
  at instantiateRuntimeModule (../../../test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js:768:12)
  at getOrInstantiateRuntimeModule (../../../test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js:781:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  > Build error occurred
  Error: Failed to collect page data for /[post]/[cmnt]
  at <unknown> (../dist/build/utils.js:849:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:325:11)

● Auto Export › production mode › Refreshes query on mount

command failed with code 1 signal null
▲ Next.js 16.1.1-canary.33 (Turbopack)
- Experiments (use with caution):
  ✓ strictRouteTypes (enabled by `__NEXT_EXPERIMENTAL_STRICT_ROUTE_TYPES`)

  Running TypeScript ...
  Finished TypeScript in 34ms ...
  Creating an optimized production build ...
✓ Compiled successfully in 236ms
  Collecting page data using 19 workers ...
Error: Cannot find module './dist/pages/_document'
Require stack:
- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/server/chunks/ssr/packages_next_document_7b563c16.js
- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/server/pages/_document.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:57:36)
  at mod.require (../dist/server/require-hook.js:68:28)
  at module evaluation (../../../test/integration/auto-export/.next/server/chunks/ssr/packages_next_document_7b563c16.js:1:42)
  at instantiateModule (../../../test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js:740:9)
  at instantiateRuntimeModule (../../../test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js:768:12)
  at getOrInstantiateRuntimeModule (../../../test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js:781:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  > Build error occurred
  Error: Failed to collect page data for /[post]/[cmnt]
  at <unknown> (../dist/build/utils.js:849:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:325:11)

● Auto Export › production mode › should update asPath after mount

command failed with code 1 signal null
▲ Next.js 16.1.1-canary.33 (Turbopack)
- Experiments (use with caution):
  ✓ strictRouteTypes (enabled by `__NEXT_EXPERIMENTAL_STRICT_ROUTE_TYPES`)

  Running TypeScript ...
  Finished TypeScript in 34ms ...
  Creating an optimized production build ...
✓ Compiled successfully in 236ms
  Collecting page data using 19 workers ...
Error: Cannot find module './dist/pages/_document'
Require stack:
- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/server/chunks/ssr/packages_next_document_7b563c16.js
- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/server/pages/_document.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:57:36)
  at mod.require (../dist/server/require-hook.js:68:28)
  at module evaluation (../../../test/integration/auto-export/.next/server/chunks/ssr/packages_next_document_7b563c16.js:1:42)
  at instantiateModule (../../../test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js:740:9)
  at instantiateRuntimeModule (../../../test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js:768:12)
  at getOrInstantiateRuntimeModule (../../../test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js:781:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  > Build error occurred
  Error: Failed to collect page data for /[post]/[cmnt]
  at <unknown> (../dist/build/utils.js:849:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:325:11)

● Auto Export › production mode › should not replace URL with page name while asPath is delayed

command failed with code 1 signal null
▲ Next.js 16.1.1-canary.33 (Turbopack)
- Experiments (use with caution):
  ✓ strictRouteTypes (enabled by `__NEXT_EXPERIMENTAL_STRICT_ROUTE_TYPES`)

  Running TypeScript ...
  Finished TypeScript in 34ms ...
  Creating an optimized production build ...
✓ Compiled successfully in 236ms
  Collecting page data using 19 workers ...
Error: Cannot find module './dist/pages/_document'
Require stack:
- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/server/chunks/ssr/packages_next_document_7b563c16.js
- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/server/pages/_document.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:57:36)
  at mod.require (../dist/server/require-hook.js:68:28)
  at module evaluation (../../../test/integration/auto-export/.next/server/chunks/ssr/packages_next_document_7b563c16.js:1:42)
  at instantiateModule (../../../test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js:740:9)
  at instantiateRuntimeModule (../../../test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js:768:12)
  at getOrInstantiateRuntimeModule (../../../test/integration/auto-export/.next/server/chunks/ssr/[turbopack]_runtime.js:781:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
  }
  > Build error occurred
  Error: Failed to collect page data for /[post]/[cmnt]
  at <unknown> (../dist/build/utils.js:849:37) {
    type: 'Error'
  }
  at ChildProcess.<anonymous> (lib/next-test-utils.ts:325:11)

● Auto Export › dev › Supports commonjs 1

expect(received).toMatch(expected)

Expected pattern: /test1/
Received string:  "<div id=\"__next\"></div><script id=\"__NEXT_DATA__\" type=\"application/json\">{\"props\":{\"pageProps\":{\"statusCode\":500,\"hostname\":\"[::]\"}},\"page\":\"/_error\",\"query\":{},\"buildId\":\"development\",\"isFallback\":false,\"err\":{\"name\":\"Error\",\"source\":\"server\",\"message\":\"Cannot find module './dist/pages/_document'\\nRequire stack:\\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js\\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js\\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/pages/_document.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js\",\"stack\":\"Error: Cannot find module './dist/pages/_document'\\nRequire stack:\\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js\\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js\\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/pages/_document.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js\\n    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)\\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:57: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 (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:68:28)\\n    at require (node:internal/modules/helpers:130:18)\\n    at module evaluation (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js:4:18)\\n    at instantiateModule (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:740:9)\\n    at instantiateRuntimeModule (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:768:12)\\n    at getOrInstantiateRuntimeModule (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:781:12)\\n    at Object.m (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:790:18)\\n    at Object.\\u003canonymous\\u003e (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/pages/_document.js:3: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 (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:68:28)\\n    at require (node:internal/modules/helpers:130:18)\\n    at requirePage (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js:105:80)\\n    at loadComponentsImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js:88:38)\\n    at DevServer.findPageComponentsImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:894:77)\\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:876:21\\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:185:36\\n    at NoopContextManager.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js:25:19)\\n    at ContextAPI.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/api/context.js:60:46)\\n    at NoopTracer.startActiveSpan (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js:65:31)\\n    at ProxyTracer.startActiveSpan (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js:36:24)\\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:154:103\\n    at NoopContextManager.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js:25:19)\\n    at ContextAPI.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/api/context.js:60:46)\\n    at NextTracerImpl.trace (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:154:28)\\n    at DevServer.findPageComponents (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:871:41)\\n    at DevServer.findPageComponents (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:691:28)\\n    at async DevServer.renderPageComponent (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1480:24)\\n    at async DevServer.renderToResponseImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1544:32)\\n    at async DevServer.pipeImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1038:25)\\n    at async NextNodeServer.handleCatchallRenderRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:412:17)\\n    at async DevServer.handleRequestImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:929:17)\\n    at async /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:387:20\\n    at async Span.traceAsyncFn (/root/actions-runner/_work/next.js/next.js/packages/next/dist/trace/trace.js:157:20)\\n    at async DevServer.handleRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:383:24)\\n    at async invokeRender (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:252:21)\\n    at async handleRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:451:24)\\n    at async requestHandlerImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:500:13)\\n    at async Server.requestListener (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js:224:13)\"},\"gip\":true,\"scriptLoader\":[]}</script>"

  20 |     const browser = await webdriver(appPort, '/commonjs1')
  21 |     const html = await browser.eval('document.body.innerHTML')
> 22 |     expect(html).toMatch(/test1/)
     |                  ^
  23 |     expect(html).toMatch(/nextExport/)
  24 |     await browser.close()
  25 |   })

  at Object.toMatch (integration/auto-export/test/index.test.ts:22:18)

● Auto Export › dev › Supports commonjs 2

expect(received).toMatch(expected)

Expected pattern: /test2/
Received string:  "<div id=\"__next\"></div><script id=\"__NEXT_DATA__\" type=\"application/json\">{\"props\":{\"pageProps\":{\"statusCode\":500,\"hostname\":\"[::]\"}},\"page\":\"/_error\",\"query\":{},\"buildId\":\"development\",\"isFallback\":false,\"err\":{\"name\":\"Error\",\"source\":\"server\",\"message\":\"Cannot find module './dist/pages/_document'\\nRequire stack:\\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js\\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js\\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/pages/_document.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js\",\"stack\":\"Error: Cannot find module './dist/pages/_document'\\nRequire stack:\\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js\\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js\\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/pages/_document.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js\\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js\\n    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)\\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:57: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 (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:68:28)\\n    at require (node:internal/modules/helpers:130:18)\\n    at module evaluation (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js:4:18)\\n    at instantiateModule (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:740:9)\\n    at instantiateRuntimeModule (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:768:12)\\n    at getOrInstantiateRuntimeModule (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:781:12)\\n    at Object.m (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:790:18)\\n    at Object.\\u003canonymous\\u003e (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/pages/_document.js:3: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 (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:68:28)\\n    at require (node:internal/modules/helpers:130:18)\\n    at requirePage (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js:105:80)\\n    at loadComponentsImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js:88:38)\\n    at DevServer.findPageComponentsImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:894:77)\\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:876:21\\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:185:36\\n    at NoopContextManager.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js:25:19)\\n    at ContextAPI.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/api/context.js:60:46)\\n    at NoopTracer.startActiveSpan (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js:65:31)\\n    at ProxyTracer.startActiveSpan (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js:36:24)\\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:154:103\\n    at NoopContextManager.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js:25:19)\\n    at ContextAPI.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/api/context.js:60:46)\\n    at NextTracerImpl.trace (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:154:28)\\n    at DevServer.findPageComponents (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:871:41)\\n    at DevServer.findPageComponents (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:691:28)\\n    at async DevServer.renderPageComponent (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1480:24)\\n    at async DevServer.renderToResponseImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1544:32)\\n    at async DevServer.pipeImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1038:25)\\n    at async NextNodeServer.handleCatchallRenderRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:412:17)\\n    at async DevServer.handleRequestImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:929:17)\\n    at async /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:387:20\\n    at async Span.traceAsyncFn (/root/actions-runner/_work/next.js/next.js/packages/next/dist/trace/trace.js:157:20)\\n    at async DevServer.handleRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:383:24)\\n    at async invokeRender (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:252:21)\\n    at async handleRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:451:24)\\n    at async requestHandlerImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:500:13)\\n    at async Server.requestListener (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js:224:13)\"},\"gip\":true,\"scriptLoader\":[]}</script>"

  28 |     const browser = await webdriver(appPort, '/commonjs2')
  29 |     const html = await browser.eval('document.body.innerHTML')
> 30 |     expect(html).toMatch(/test2/)
     |                  ^
  31 |     expect(html).toMatch(/nextExport/)
  32 |     await browser.close()
  33 |   })

  at Object.toMatch (integration/auto-export/test/index.test.ts:30:18)

● Auto Export › dev › Refreshes query on mount

TIMED OUT: /post.*post-1/

<div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500,"hostname":"[::]"}},"page":"/_error","query":{},"buildId":"development","isFallback":false,"err":{"name":"Error","source":"server","message":"Cannot find module './dist/pages/_document'\nRequire stack:\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/pages/_document.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js","stack":"Error: Cannot find module './dist/pages/_document'\nRequire stack:\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/pages/_document.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js\n    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:57: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 (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:68:28)\n    at require (node:internal/modules/helpers:130:18)\n    at module evaluation (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js:4:18)\n    at instantiateModule (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:740:9)\n    at instantiateRuntimeModule (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:768:12)\n    at getOrInstantiateRuntimeModule (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:781:12)\n    at Object.m (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:790:18)\n    at Object.\u003canonymous\u003e (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/pages/_document.js:3: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 (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:68:28)\n    at require (node:internal/modules/helpers:130:18)\n    at requirePage (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js:105:80)\n    at loadComponentsImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js:88:38)\n    at DevServer.findPageComponentsImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:894:77)\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:876:21\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:185:36\n    at NoopContextManager.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js:25:19)\n    at ContextAPI.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/api/context.js:60:46)\n    at NoopTracer.startActiveSpan (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js:65:31)\n    at ProxyTracer.startActiveSpan (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js:36:24)\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:154:103\n    at NoopContextManager.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js:25:19)\n    at ContextAPI.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/api/context.js:60:46)\n    at NextTracerImpl.trace (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:154:28)\n    at DevServer.findPageComponents (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:871:41)\n    at DevServer.findPageComponents (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:691:28)\n    at async DevServer.renderPageComponent (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1480:24)\n    at async DevServer.renderToResponseImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1544:32)\n    at async DevServer.pipeImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1038:25)\n    at async NextNodeServer.handleCatchallRenderRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:412:17)\n    at async DevServer.handleRequestImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:929:17)\n    at async /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:387:20\n    at async Span.traceAsyncFn (/root/actions-runner/_work/next.js/next.js/packages/next/dist/trace/trace.js:157:20)\n    at async DevServer.handleRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:383:24)\n    at async invokeRender (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:252:21)\n    at async handleRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:451:24)\n    at async requestHandlerImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:500:13)\n    at async Server.requestListener (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js:224:13)"},"gip":true,"scriptLoader":[]}</script>

undefined

  724 |   }
  725 |   console.error('TIMED OUT CHECK: ', { regex, content, lastErr })
> 726 |   throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |         ^
  727 | }
  728 |
  729 | export class File {

  at check (lib/next-test-utils.ts:726:9)
  at Object.<anonymous> (integration/auto-export/test/index.test.ts:37:5)

● Auto Export › dev › should update asPath after mount

TIMED OUT: /\/zeit\/cmnt-2/

<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 src="/_next/static/chunks/%5Broot-of-the-server%5D__993f3b3f._.js" defer=""></script><script src="/_next/static/chunks/test_integration_auto-export_pages__app_2da965e7._.js" defer=""></script><script src="/_next/static/chunks/turbopack-test_integration_auto-export_pages__app_b2317a47._.js" defer=""></script><script src="/_next/static/chunks/%5Broot-of-the-server%5D__c3f3a6f4._.js" defer=""></script><script src="/_next/static/chunks/test_integration_auto-export_pages__error_2da965e7._.js" defer=""></script><script src="/_next/static/chunks/turbopack-test_integration_auto-export_pages__error_ce6b5f69._.js" defer=""></script><script src="/_next/static/development/_buildManifest.js" defer=""></script><script src="/_next/static/development/_ssgManifest.js" defer=""></script><script src="/_next/static/development/_clientMiddlewareManifest.js" defer=""></script><noscript id="__next_css__DO_NOT_USE__"></noscript></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500,"hostname":"[::]"}},"page":"/_error","query":{},"buildId":"development","isFallback":false,"err":{"name":"Error","source":"server","message":"Cannot find module './dist/pages/_document'\nRequire stack:\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/pages/_document.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js","stack":"Error: Cannot find module './dist/pages/_document'\nRequire stack:\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/pages/_document.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js\n    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:57: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 (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:68:28)\n    at require (node:internal/modules/helpers:130:18)\n    at module evaluation (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js:4:18)\n    at instantiateModule (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:740:9)\n    at instantiateRuntimeModule (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:768:12)\n    at getOrInstantiateRuntimeModule (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:781:12)\n    at Object.m (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:790:18)\n    at Object.\u003canonymous\u003e (/root/actions-runner/_work/next.js/next.js/test/integration/auto-export/.next/dev/server/pages/_document.js:3: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 (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:68:28)\n    at require (node:internal/modules/helpers:130:18)\n    at requirePage (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js:105:80)\n    at loadComponentsImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js:88:38)\n    at DevServer.findPageComponentsImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:894:77)\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:876:21\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:185:36\n    at NoopContextManager.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js:25:19)\n    at ContextAPI.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/api/context.js:60:46)\n    at NoopTracer.startActiveSpan (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js:65:31)\n    at ProxyTracer.startActiveSpan (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js:36:24)\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:154:103\n    at NoopContextManager.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js:25:19)\n    at ContextAPI.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/api/context.js:60:46)\n    at NextTracerImpl.trace (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:154:28)\n    at DevServer.findPageComponents (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:871:41)\n    at DevServer.findPageComponents (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:691:28)\n    at async DevServer.renderPageComponent (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1480:24)\n    at async DevServer.renderToResponseImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1544:32)\n    at async DevServer.pipeImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1038:25)\n    at async NextNodeServer.handleCatchallRenderRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:412:17)\n    at async DevServer.handleRequestImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:929:17)\n    at async /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:387:20\n    at async Span.traceAsyncFn (/root/actions-runner/_work/next.js/next.js/packages/next/dist/trace/trace.js:157:20)\n    at async DevServer.handleRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:383:24)\n    at async invokeRender (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:252:21)\n    at async handleRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:451:24)\n    at async requestHandlerImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:500:13)\n    at async Server.requestListener (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js:224:13)"},"gip":true,"scriptLoader":[]}</script></body>

undefined

  724 |   }
  725 |   console.error('TIMED OUT CHECK: ', { regex, content, lastErr })
> 726 |   throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |         ^
  727 | }
  728 |
  729 | export class File {

  at check (lib/next-test-utils.ts:726:9)
  at Object.<anonymous> (integration/auto-export/test/index.test.ts:44:5)

● Auto Export › dev › should not replace URL with page name while asPath is delayed

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

Expected: false
Received: null

  53 |       return p !== '/zeit/cmnt-1'
  54 |     })`)
> 55 |     expect(val).toBe(false)
     |                 ^
  56 |   })
  57 | }
  58 |

  at Object.toBe (integration/auto-export/test/index.test.ts:55:17)

● Auto Export › dev › should not show hydration warning from mismatching asPath

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

Expected: []
Received: undefined

  88 |       const browser = await webdriver(appPort, '/zeit/cmnt-1')
  89 |       const caughtWarns = await browser.eval(`window.caughtWarns`)
> 90 |       expect(caughtWarns).toEqual([])
     |                           ^
  91 |     })
  92 |   })
  93 | })

  at Object.toEqual (integration/auto-export/test/index.test.ts:90:27)

pnpm test test/integration/app-document-style-fragment/test/index.test.ts (turbopack) (job)

  • server-side dev errors > should show server-side error for gsp page correctly (DD)
  • server-side dev errors > should show server-side error for gssp page correctly (DD)
  • server-side dev errors > should show server-side error for dynamic gssp page correctly (DD)
  • server-side dev errors > should show server-side error for api route correctly (DD)
  • server-side dev errors > should show server-side error for dynamic api route correctly (DD)
  • server-side dev errors > should show server-side error for uncaught rejection correctly (DD)
  • server-side dev errors > should show server-side error for uncaught empty rejection correctly (DD)
  • server-side dev errors > should show server-side error for uncaught exception correctly (DD)
  • server-side dev errors > should show server-side error for uncaught empty exception correctly (DD)
Expand output

● server-side dev errors › should show server-side error for gsp page correctly

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

Expected substring: "ReferenceError: missingVar is not defined"
Received string:    "⨯ Error: Cannot find module './dist/pages/_document'
Require stack:
- /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js
- /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/pages/_document.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/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

  at module evaluation (../document.js:1:18)
  at Object.<anonymous> (../../../test/integration/server-side-dev-errors/.next/dev/server/pages/_document.js:3:3)
  > 1 | module.exports = require('./dist/pages/_document')
      |                  ^
    2 | {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array],
    page: '/gsp'
  }
  ⨯ Error: Cannot find module './dist/pages/_document'
  Require stack:
  - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js
  - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/[turbopack]_runtime.js
  - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/pages/_document.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/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
  at module evaluation (../document.js:1:18)
  at Object.<anonymous> (../../../test/integration/server-side-dev-errors/.next/dev/server/pages/_document.js:3:3)
  > 1 | module.exports = require('./dist/pages/_document')
      |                  ^
    2 | {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array],
    page: '/gsp'
  }
  "
  at toContain (integration/server-side-dev-errors/test/index.test.ts:68:41)
  at fn (lib/next-test-utils.ts:797:20)
  at Object.<anonymous> (integration/server-side-dev-errors/test/index.test.ts:67:7)

● server-side dev errors › should show server-side error for gssp page correctly

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

Expected substring: "ReferenceError: missingVar is not defined"
Received string:    "⨯ Error: Cannot find module './dist/pages/_document'
Require stack:
- /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js
- /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/pages/_document.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/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

  at module evaluation (../document.js:1:18)
  at Object.<anonymous> (../../../test/integration/server-side-dev-errors/.next/dev/server/pages/_document.js:3:3)
  > 1 | module.exports = require('./dist/pages/_document')
      |                  ^
    2 | {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array],
    page: '/gssp'
  }
  ⨯ Error: Cannot find module './dist/pages/_document'
  Require stack:
  - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js
  - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/[turbopack]_runtime.js
  - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/pages/_document.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/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
  at module evaluation (../document.js:1:18)
  at Object.<anonymous> (../../../test/integration/server-side-dev-errors/.next/dev/server/pages/_document.js:3:3)
  > 1 | module.exports = require('./dist/pages/_document')
      |                  ^
    2 | {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array],
    page: '/gssp'
  }
  "
  at toContain (integration/server-side-dev-errors/test/index.test.ts:119:41)
  at fn (lib/next-test-utils.ts:797:20)
  at Object.<anonymous> (integration/server-side-dev-errors/test/index.test.ts:118:7)

● server-side dev errors › should show server-side error for dynamic gssp page correctly

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

Expected substring: "ReferenceError: missingVar is not defined"
Received string:    "⨯ Error: Cannot find module './dist/pages/_document'
Require stack:
- /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js
- /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/pages/_document.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/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

  at module evaluation (../document.js:1:18)
  at Object.<anonymous> (../../../test/integration/server-side-dev-errors/.next/dev/server/pages/_document.js:3:3)
  > 1 | module.exports = require('./dist/pages/_document')
      |                  ^
    2 | {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array],
    page: '/blog/first'
  }
  ⨯ Error: Cannot find module './dist/pages/_document'
  Require stack:
  - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js
  - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/[turbopack]_runtime.js
  - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/pages/_document.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/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
  at module evaluation (../document.js:1:18)
  at Object.<anonymous> (../../../test/integration/server-side-dev-errors/.next/dev/server/pages/_document.js:3:3)
  > 1 | module.exports = require('./dist/pages/_document')
      |                  ^
    2 | {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array],
    page: '/blog/first'
  }
  "
  at toContain (integration/server-side-dev-errors/test/index.test.ts:169:41)
  at fn (lib/next-test-utils.ts:797:20)
  at Object.<anonymous> (integration/server-side-dev-errors/test/index.test.ts:168:7)

● server-side dev errors › should show server-side error for api route correctly

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `server-side dev errors should show server-side error for api route correctly 1`

- Snapshot  - 11
+ Received  +  1

- {
-   "description": "missingVar is not defined",
-   "environmentLabel": null,
-   "label": "Runtime ReferenceError",
-   "source": "pages/api/hello.js (2:3) @ handler
- > 2 |   missingVar;res.status(200).json({ hello: 'world' })
-     |   ^",
-   "stack": [
-     "handler pages/api/hello.js (2:3)",
-   ],
- }
+ "Expected Redbox but found no visible one."

  244 |       }
  245 |
> 246 |       await expect(browser).toDisplayRedbox(`
      |                             ^
  247 |         {
  248 |           "description": "missingVar is not defined",
  249 |           "environmentLabel": null,

  at Object.toDisplayRedbox (integration/server-side-dev-errors/test/index.test.ts:246:29)

● server-side dev errors › should show server-side error for dynamic api route correctly

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `server-side dev errors should show server-side error for dynamic api route correctly 1`

- Snapshot  - 11
+ Received  +  1

- {
-   "description": "missingVar is not defined",
-   "environmentLabel": null,
-   "label": "Runtime ReferenceError",
-   "source": "pages/api/blog/[slug].js (2:3) @ handler
- > 2 |   missingVar;res.status(200).json({ slug: req.query.slug })
-     |   ^",
-   "stack": [
-     "handler pages/api/blog/[slug].js (2:3)",
-   ],
- }
+ "Expected Redbox but found no visible one."

  310 |       }
  311 |
> 312 |       await expect(browser).toDisplayRedbox(`
      |                             ^
  313 |         {
  314 |           "description": "missingVar is not defined",
  315 |           "environmentLabel": null,

  at Object.toDisplayRedbox (integration/server-side-dev-errors/test/index.test.ts:312:29)

● server-side dev errors › should show server-side error for uncaught rejection correctly

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

Expected substring: "Error: catch this rejection"
Received string:    "⨯ Error: Cannot find module './dist/pages/_document'
Require stack:
- /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js
- /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/[turbopack]_runtime.js
- /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/pages/_document.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/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

  at module evaluation (../document.js:1:18)
  at Object.<anonymous> (../../../test/integration/server-side-dev-errors/.next/dev/server/pages/_document.js:3:3)
  > 1 | module.exports = require('./dist/pages/_document')
      |                  ^
    2 | {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array],
    page: '/uncaught-rejection'
  }
  ⨯ Error: Cannot find module './dist/pages/_document'
  Require stack:
  - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js
  - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/[turbopack]_runtime.js
  - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/pages/_document.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/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
  at module evaluation (../document.js:1:18)
  at Object.<anonymous> (../../../test/integration/server-side-dev-errors/.next/dev/server/pages/_document.js:3:3)
  > 1 | module.exports = require('./dist/pages/_document')
      |                  ^
    2 | {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array],
    page: '/uncaught-rejection'
  }
  "
  at toContain (integration/server-side-dev-errors/test/index.test.ts:343:39)
  at fn (lib/next-test-utils.ts:797:20)
  at Object.<anonymous> (integration/server-side-dev-errors/test/index.test.ts:342:5)

● server-side dev errors › should show server-side error for uncaught empty rejection correctly

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `server-side dev errors should show server-side error for uncaught empty rejection correctly 1`

- Snapshot  - 27
+ Received  + 44

- Error: 
-     at Timeout._onTimeout (../../test/integration/server-side-dev-errors/pages/uncaught-empty-rejection.js:7:20)
-    5 | export async function getServerSideProps() {
-    6 |   setTimeout(() => {
- >  7 |     Promise.reject(new Error())
-      |                    ^
-    8 |   }, 10)
-    9 |   return {
-   10 |     props: {},
- ⨯ unhandledRejection: Error: 
-     at Timeout._onTimeout (../../test/integration/server-side-dev-errors/pages/uncaught-empty-rejection.js:7:20)
-    5 | export async function getServerSideProps() {
-    6 |   setTimeout(() => {
- >  7 |     Promise.reject(new Error())
+ ⨯ Error: Cannot find module './dist/pages/_document'
+ Require stack:
+ - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js
+ - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/[turbopack]_runtime.js
+ - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/pages/_document.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/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
+     at module evaluation (document.js:1:18)
+     at Object.<anonymous> (../../test/integration/server-side-dev-errors/.next/dev/server/pages/_document.js:3:3)
+ > 1 | module.exports = require('./dist/pages/_document')
-      |                    ^
+     |                  ^
-    8 |   }, 10)
-    9 |   return {
-   10 |     props: {},
- ⨯ unhandledRejection:  Error: 
-     at Timeout._onTimeout (../../test/integration/server-side-dev-errors/pages/uncaught-empty-rejection.js:7:20)
-    5 | export async function getServerSideProps() {
-    6 |   setTimeout(() => {
- >  7 |     Promise.reject(new Error())
+   2 | {
+   code: 'MODULE_NOT_FOUND',
+   requireStack: [Array],
+   page: '/uncaught-empty-rejection'
+ }
+ ⨯ Error: Cannot find module './dist/pages/_document'
+ Require stack:
+ - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js
+ - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/[turbopack]_runtime.js
+ - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/pages/_document.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/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
+     at module evaluation (document.js:1:18)
+     at Object.<anonymous> (../../test/integration/server-side-dev-errors/.next/dev/server/pages/_document.js:3:3)
+ > 1 | module.exports = require('./dist/pages/_document')
-      |                    ^
+     |                  ^
-    8 |   }, 10)
-    9 |   return {
-   10 |     props: {},
+   2 | {
+   code: 'MODULE_NOT_FOUND',
+   requireStack: [Array],
+   page: '/uncaught-empty-rejection'
+ }

  432 |     // FIXME(veil): error repeated
  433 |     if (isTurbopack) {
> 434 |       expect(stderrOutput).toMatchInlineSnapshot(`
      |                            ^
  435 |        "Error: 
  436 |            at Timeout._onTimeout (../../test/integration/server-side-dev-errors/pages/uncaught-empty-rejection.js:7:20)
  437 |           5 | export async function getServerSideProps() {

  at Object.toMatchInlineSnapshot (integration/server-side-dev-errors/test/index.test.ts:434:28)

● server-side dev errors › should show server-side error for uncaught exception correctly

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `server-side dev errors should show server-side error for uncaught exception correctly 1`

- Snapshot  - 27
+ Received  + 44

- Error: catch this exception
-     at Timeout._onTimeout (../../test/integration/server-side-dev-errors/pages/uncaught-exception.js:7:11)
-    5 | export async function getServerSideProps() {
-    6 |   setTimeout(() => {
- >  7 |     throw new Error('catch this exception')
-      |           ^
-    8 |   }, 10)
-    9 |   return {
-   10 |     props: {},
- ⨯ uncaughtException: Error: catch this exception
-     at Timeout._onTimeout (../../test/integration/server-side-dev-errors/pages/uncaught-exception.js:7:11)
-    5 | export async function getServerSideProps() {
-    6 |   setTimeout(() => {
- >  7 |     throw new Error('catch this exception')
+ ⨯ Error: Cannot find module './dist/pages/_document'
+ Require stack:
+ - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js
+ - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/[turbopack]_runtime.js
+ - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/pages/_document.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/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
+     at module evaluation (document.js:1:18)
+     at Object.<anonymous> (../../test/integration/server-side-dev-errors/.next/dev/server/pages/_document.js:3:3)
+ > 1 | module.exports = require('./dist/pages/_document')
-      |           ^
-    8 |   }, 10)
-    9 |   return {
-   10 |     props: {},
- ⨯ uncaughtException:  Error: catch this exception
-     at Timeout._onTimeout (../../test/integration/server-side-dev-errors/pages/uncaught-exception.js:7:11)
-    5 | export async function getServerSideProps() {
-    6 |   setTimeout(() => {
- >  7 |     throw new Error('catch this exception')
+     |                  ^
+   2 | {
+   code: 'MODULE_NOT_FOUND',
+   requireStack: [Array],
+   page: '/uncaught-exception'
+ }
+ ⨯ Error: Cannot find module './dist/pages/_document'
+ Require stack:
+ - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js
+ - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/[turbopack]_runtime.js
+ - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/pages/_document.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/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
+     at module evaluation (document.js:1:18)
+     at Object.<anonymous> (../../test/integration/server-side-dev-errors/.next/dev/server/pages/_document.js:3:3)
+ > 1 | module.exports = require('./dist/pages/_document')
-      |           ^
-    8 |   }, 10)
-    9 |   return {
-   10 |     props: {},
+     |                  ^
+   2 | {
+   code: 'MODULE_NOT_FOUND',
+   requireStack: [Array],
+   page: '/uncaught-exception'
+ }

  510 |     // FIXME(veil): error repeated
  511 |     if (isTurbopack) {
> 512 |       expect(stderrOutput).toMatchInlineSnapshot(`
      |                            ^
  513 |        "Error: catch this exception
  514 |            at Timeout._onTimeout (../../test/integration/server-side-dev-errors/pages/uncaught-exception.js:7:11)
  515 |           5 | export async function getServerSideProps() {

  at Object.toMatchInlineSnapshot (integration/server-side-dev-errors/test/index.test.ts:512:28)

● server-side dev errors › should show server-side error for uncaught empty exception correctly

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `server-side dev errors should show server-side error for uncaught empty exception correctly 1`

- Snapshot  - 27
+ Received  + 44

- Error: 
-     at Timeout._onTimeout (../../test/integration/server-side-dev-errors/pages/uncaught-empty-exception.js:7:11)
-    5 | export async function getServerSideProps() {
-    6 |   setTimeout(() => {
- >  7 |     throw new Error()
-      |           ^
-    8 |   }, 10)
-    9 |   return {
-   10 |     props: {},
- ⨯ uncaughtException: Error: 
-     at Timeout._onTimeout (../../test/integration/server-side-dev-errors/pages/uncaught-empty-exception.js:7:11)
-    5 | export async function getServerSideProps() {
-    6 |   setTimeout(() => {
- >  7 |     throw new Error()
-      |           ^
+ ⨯ Error: Cannot find module './dist/pages/_document'
+ Require stack:
+ - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js
+ - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/[turbopack]_runtime.js
+ - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/pages/_document.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/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
+     at module evaluation (document.js:1:18)
+     at Object.<anonymous> (../../test/integration/server-side-dev-errors/.next/dev/server/pages/_document.js:3:3)
+ > 1 | module.exports = require('./dist/pages/_document')
+     |                  ^
-    8 |   }, 10)
-    9 |   return {
-   10 |     props: {},
- ⨯ uncaughtException:  Error: 
-     at Timeout._onTimeout (../../test/integration/server-side-dev-errors/pages/uncaught-empty-exception.js:7:11)
-    5 | export async function getServerSideProps() {
-    6 |   setTimeout(() => {
- >  7 |     throw new Error()
-      |           ^
-    8 |   }, 10)
-    9 |   return {
-   10 |     props: {},
+   2 | {
+   code: 'MODULE_NOT_FOUND',
+   requireStack: [Array],
+   page: '/uncaught-empty-exception'
+ }
+ ⨯ Error: Cannot find module './dist/pages/_document'
+ Require stack:
+ - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js
+ - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/chunks/ssr/[turbopack]_runtime.js
+ - /root/actions-runner/_work/next.js/next.js/test/integration/server-side-dev-errors/.next/dev/server/pages/_document.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/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
+     at module evaluation (document.js:1:18)
+     at Object.<anonymous> (../../test/integration/server-side-dev-errors/.next/dev/server/pages/_document.js:3:3)
+ > 1 | module.exports = require('./dist/pages/_document')
+     |                  ^
+   2 | {
+   code: 'MODULE_NOT_FOUND',
+   requireStack: [Array],
+   page: '/uncaught-empty-exception'
+ }

  588 |     // FIXME(veil): error repeated
  589 |     if (isTurbopack) {
> 590 |       expect(stderrOutput).toMatchInlineSnapshot(`
      |                            ^
  591 |        "Error: 
  592 |            at Timeout._onTimeout (../../test/integration/server-side-dev-errors/pages/uncaught-empty-exception.js:7:11)
  593 |           5 | export async function getServerSideProps() {

  at Object.toMatchInlineSnapshot (integration/server-side-dev-errors/test/index.test.ts:590:28)

pnpm test test/integration/custom-routes-i18n-index-redirect/test/index.test.ts (turbopack) (job)

  • Read-only source HMR > should detect changes to a page (DD)
  • Read-only source HMR > should handle page deletion and subsequent recreation (DD)
  • Read-only source HMR > should detect a new page (DD)
Expand output

● Read-only source HMR › should detect changes to a page

TIMED OUT: /Hello World/

{"props":{"pageProps":{"statusCode":500,"hostname":"[::]"}},"page":"/_error","query":{},"buildId":"development","isFallback":false,"err":{"name":"Error","source":"server","message":"Cannot find module './dist/pages/_document'\nRequire stack:\n- /root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/[turbopack]_runtime.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/pages/_document.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js","stack":"Error: Cannot find module './dist/pages/_document'\nRequire stack:\n- /root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/[turbopack]_runtime.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/pages/_document.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js\n    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:57: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 (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:68:28)\n    at require (node:internal/modules/helpers:130:18)\n    at module evaluation (/root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js:4:18)\n    at instantiateModule (/root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:740:9)\n    at instantiateRuntimeModule (/root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:768:12)\n    at getOrInstantiateRuntimeModule (/root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:781:12)\n    at Object.m (/root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:790:18)\n    at Object.\u003canonymous\u003e (/root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/pages/_document.js:3: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 (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:68:28)\n    at require (node:internal/modules/helpers:130:18)\n    at requirePage (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js:105:80)\n    at loadComponentsImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js:88:38)\n    at DevServer.findPageComponentsImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:894:77)\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:876:21\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:185:36\n    at NoopContextManager.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js:25:19)\n    at ContextAPI.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/api/context.js:60:46)\n    at NoopTracer.startActiveSpan (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js:65:31)\n    at ProxyTracer.startActiveSpan (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js:36:24)\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:154:103\n    at NoopContextManager.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js:25:19)\n    at ContextAPI.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/api/context.js:60:46)\n    at NextTracerImpl.trace (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:154:28)\n    at DevServer.findPageComponents (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:871:41)\n    at DevServer.findPageComponents (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:691:28)\n    at async DevServer.renderPageComponent (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1480:24)\n    at async DevServer.renderToResponseImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1544:32)\n    at async DevServer.pipeImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1038:25)\n    at async NextNodeServer.handleCatchallRenderRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:412:17)\n    at async DevServer.handleRequestImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:929:17)\n    at async /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:387:20\n    at async Span.traceAsyncFn (/root/actions-runner/_work/next.js/next.js/packages/next/dist/trace/trace.js:157:20)\n    at async DevServer.handleRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:383:24)\n    at async invokeRender (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:252:21)\n    at async handleRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:451:24)\n    at async requestHandlerImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:500:13)\n    at async Server.requestListener (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js:224:13)"},"gip":true,"scriptLoader":[]}

undefined

  724 |   }
  725 |   console.error('TIMED OUT CHECK: ', { regex, content, lastErr })
> 726 |   throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |         ^
  727 | }
  728 |
  729 | export class File {

  at check (lib/next-test-utils.ts:726:9)
  at Object.<anonymous> (integration/read-only-source-hmr/test/index.test.ts:63:7)

● Read-only source HMR › should handle page deletion and subsequent recreation

TIMED OUT: /Hello World/

{"props":{"pageProps":{"statusCode":500,"hostname":"[::]"}},"page":"/_error","query":{},"buildId":"development","isFallback":false,"err":{"name":"Error","source":"server","message":"Cannot find module './dist/pages/_document'\nRequire stack:\n- /root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/[turbopack]_runtime.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/pages/_document.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js","stack":"Error: Cannot find module './dist/pages/_document'\nRequire stack:\n- /root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/[turbopack]_runtime.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/pages/_document.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js\n    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:57: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 (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:68:28)\n    at require (node:internal/modules/helpers:130:18)\n    at module evaluation (/root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js:4:18)\n    at instantiateModule (/root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:740:9)\n    at instantiateRuntimeModule (/root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:768:12)\n    at getOrInstantiateRuntimeModule (/root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:781:12)\n    at Object.m (/root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:790:18)\n    at Object.\u003canonymous\u003e (/root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/pages/_document.js:3: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 (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:68:28)\n    at require (node:internal/modules/helpers:130:18)\n    at requirePage (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js:105:80)\n    at loadComponentsImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js:88:38)\n    at DevServer.findPageComponentsImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:894:77)\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:876:21\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:185:36\n    at NoopContextManager.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js:25:19)\n    at ContextAPI.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/api/context.js:60:46)\n    at NoopTracer.startActiveSpan (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js:65:31)\n    at ProxyTracer.startActiveSpan (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js:36:24)\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:154:103\n    at NoopContextManager.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js:25:19)\n    at ContextAPI.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/api/context.js:60:46)\n    at NextTracerImpl.trace (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:154:28)\n    at DevServer.findPageComponents (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:871:41)\n    at DevServer.findPageComponents (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:691:28)\n    at async DevServer.renderPageComponent (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1480:24)\n    at async DevServer.renderToResponseImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1544:32)\n    at async DevServer.pipeImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1038:25)\n    at async NextNodeServer.handleCatchallRenderRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:412:17)\n    at async DevServer.handleRequestImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:929:17)\n    at async /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:387:20\n    at async Span.traceAsyncFn (/root/actions-runner/_work/next.js/next.js/packages/next/dist/trace/trace.js:157:20)\n    at async DevServer.handleRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:383:24)\n    at async invokeRender (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:252:21)\n    at async handleRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:451:24)\n    at async requestHandlerImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:500:13)\n    at async Server.requestListener (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js:224:13)"},"gip":true,"scriptLoader":[]}

undefined

  724 |   }
  725 |   console.error('TIMED OUT CHECK: ', { regex, content, lastErr })
> 726 |   throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |         ^
  727 | }
  728 |
  729 | export class File {

  at check (lib/next-test-utils.ts:726:9)
  at Object.<anonymous> (integration/read-only-source-hmr/test/index.test.ts:90:7)

● Read-only source HMR › should detect a new page

TIMED OUT: /New page/

{"props":{"pageProps":{"statusCode":500,"hostname":"[::]"}},"page":"/_error","query":{},"buildId":"development","isFallback":false,"err":{"name":"Error","source":"server","message":"Cannot find module './dist/pages/_document'\nRequire stack:\n- /root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/[turbopack]_runtime.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/pages/_document.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js","stack":"Error: Cannot find module './dist/pages/_document'\nRequire stack:\n- /root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/[turbopack]_runtime.js\n- /root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/pages/_document.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/utils.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/options.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/build/swc/index.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-utils/setup-dev-bundler.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js\n- /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js\n    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:57: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 (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:68:28)\n    at require (node:internal/modules/helpers:130:18)\n    at module evaluation (/root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/packages_next_document_7b563c16.js:4:18)\n    at instantiateModule (/root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:740:9)\n    at instantiateRuntimeModule (/root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:768:12)\n    at getOrInstantiateRuntimeModule (/root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:781:12)\n    at Object.m (/root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/chunks/ssr/[turbopack]_runtime.js:790:18)\n    at Object.\u003canonymous\u003e (/root/actions-runner/_work/next.js/next.js/test/integration/read-only-source-hmr/.next/dev/server/pages/_document.js:3: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 (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require-hook.js:68:28)\n    at require (node:internal/modules/helpers:130:18)\n    at requirePage (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/require.js:105:80)\n    at loadComponentsImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/load-components.js:88:38)\n    at DevServer.findPageComponentsImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:894:77)\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:876:21\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:185:36\n    at NoopContextManager.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js:25:19)\n    at ContextAPI.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/api/context.js:60:46)\n    at NoopTracer.startActiveSpan (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js:65:31)\n    at ProxyTracer.startActiveSpan (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js:36:24)\n    at /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:154:103\n    at NoopContextManager.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js:25:19)\n    at ContextAPI.with (/root/actions-runner/_work/next.js/next.js/node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/api/build/src/api/context.js:60:46)\n    at NextTracerImpl.trace (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/trace/tracer.js:154:28)\n    at DevServer.findPageComponents (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:871:41)\n    at DevServer.findPageComponents (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:691:28)\n    at async DevServer.renderPageComponent (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1480:24)\n    at async DevServer.renderToResponseImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1544:32)\n    at async DevServer.pipeImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:1038:25)\n    at async NextNodeServer.handleCatchallRenderRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/next-server.js:412:17)\n    at async DevServer.handleRequestImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/base-server.js:929:17)\n    at async /root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:387:20\n    at async Span.traceAsyncFn (/root/actions-runner/_work/next.js/next.js/packages/next/dist/trace/trace.js:157:20)\n    at async DevServer.handleRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js:383:24)\n    at async invokeRender (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:252:21)\n    at async handleRequest (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:451:24)\n    at async requestHandlerImpl (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/router-server.js:500:13)\n    at async Server.requestListener (/root/actions-runner/_work/next.js/next.js/packages/next/dist/server/lib/start-server.js:224:13)"},"gip":true,"scriptLoader":[]}

undefined

  724 |   }
  725 |   console.error('TIMED OUT CHECK: ', { regex, content, lastErr })
> 726 |   throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |         ^
  727 | }
  728 |
  729 | export class File {

  at check (lib/next-test-utils.ts:726:9)
  at Object.<anonymous> (integration/read-only-source-hmr/test/index.test.ts:124:7)

pnpm test-start-turbo test/e2e/app-dir/app-client-cache/client-cache.defaults.test.ts (turbopack) (job)

  • app fetch build cache > should render page with dependencies (DD)
  • app fetch build cache > should bundle @aws-sdk/client-s3 as a transpiled package (DD)
Expand output

● app fetch build cache › should render page with dependencies

next build failed with code/signal 1

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

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

● app fetch build cache › should bundle @aws-sdk/client-s3 as a transpiled package

next build failed with code/signal 1

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

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

pnpm test test/integration/404-page-ssg/test/index.test.ts (turbopack) (job)

  • Middleware development errors > when matcher is added > sends response correctly (DD)
  • Middleware development errors > when middleware is added > sends response correctly (DD)
  • Middleware development errors > when middleware is removed > sends response correctly (DD)
  • Middleware development errors > when middleware is removed and re-added > sends response correctly (DD)
Expand output

● Middleware development errors › when middleware is removed › sends response correctly

TIMED OUT: success

undefined

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

Expected: 200
Received: 500

  724 |   }
  725 |   console.error('TIMED OUT CHECK: ', { regex, content, lastErr })
> 726 |   throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |         ^
  727 | }
  728 |
  729 | export class File {

  at check (lib/next-test-utils.ts:726:9)
  at assertMiddlewareFetch (integration/middleware-dev-update/test/index.test.ts:45:5)
  at Object.<anonymous> (integration/middleware-dev-update/test/index.test.ts:63:7)

● Middleware development errors › when middleware is removed and re-added › sends response correctly

TIMED OUT: success

undefined

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

Expected: 200
Received: 500

  724 |   }
  725 |   console.error('TIMED OUT CHECK: ', { regex, content, lastErr })
> 726 |   throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |         ^
  727 | }
  728 |
  729 | export class File {

  at check (lib/next-test-utils.ts:726:9)
  at assertMiddlewareFetch (integration/middleware-dev-update/test/index.test.ts:45:5)
  at Object.<anonymous> (integration/middleware-dev-update/test/index.test.ts:78:7)

● Middleware development errors › when middleware is added › sends response correctly

TIMED OUT: success

undefined

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

Expected: 200
Received: 500

  724 |   }
  725 |   console.error('TIMED OUT CHECK: ', { regex, content, lastErr })
> 726 |   throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |         ^
  727 | }
  728 |
  729 | export class File {

  at check (lib/next-test-utils.ts:726:9)
  at assertMiddlewareFetch (integration/middleware-dev-update/test/index.test.ts:45:5)
  at Object.<anonymous> (integration/middleware-dev-update/test/index.test.ts:93:7)

● Middleware development errors › when matcher is added › sends response correctly

TIMED OUT: success

undefined

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

Expected: 200
Received: 500

  724 |   }
  725 |   console.error('TIMED OUT CHECK: ', { regex, content, lastErr })
> 726 |   throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |         ^
  727 | }
  728 |
  729 | export class File {

  at check (lib/next-test-utils.ts:726:9)
  at assertMiddlewareFetch (integration/middleware-dev-update/test/index.test.ts:45:5)
  at Object.<anonymous> (integration/middleware-dev-update/test/index.test.ts:114:7)

pnpm test-start-turbo test/e2e/api-resolver-query-writeable/api-resolver-query-writeable.test.ts (turbopack) (job)

  • debug-build-paths > default fixture > explicit path formats > should build single page with pages/ prefix (DD)
  • debug-build-paths > default fixture > explicit path formats > should build multiple pages routes (DD)
  • debug-build-paths > default fixture > explicit path formats > should build dynamic route with literal [slug] path (DD)
  • debug-build-paths > default fixture > glob pattern matching > should match app and pages routes with glob patterns (DD)
  • debug-build-paths > default fixture > glob pattern matching > should match nested routes with app/blog/**/page.tsx pattern (DD)
  • debug-build-paths > default fixture > glob pattern matching > should match dynamic routes with glob before brackets like app/**/[slug]/page.tsx (DD)
  • debug-build-paths > default fixture > glob pattern matching > should match hybrid pattern with literal [slug] and glob ** (DD)
  • debug-build-paths > default fixture > glob pattern matching > should match multiple app routes with explicit patterns (DD)
  • debug-build-paths > default fixture > glob pattern matching > should exclude paths matching negation patterns (DD)
  • debug-build-paths > default fixture > glob pattern matching > should exclude dynamic route paths with negation (DD)
  • debug-build-paths > default fixture > glob pattern matching > should support multiple negation patterns (DD)
  • debug-build-paths > default fixture > glob pattern matching > should build everything except excluded paths when only negation patterns are provided (DD)
  • debug-build-paths > default fixture > typechecking with debug-build-paths > should skip typechecking for excluded app routes (DD)
  • debug-build-paths > with-compile-error fixture > should skip compilation of excluded routes with compile errors (DD)
Expand output

● debug-build-paths › default fixture › explicit path formats › should build single page with pages/ prefix

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

Expected: 0
Received: 1

  17 |           args: ['--debug-build-paths', 'pages/foo.tsx'],
  18 |         })
> 19 |         expect(buildResult.exitCode).toBe(0)
     |                                      ^
  20 |         expect(buildResult.cliOutput).toBeDefined()
  21 |
  22 |         // Should only build the specified page

  at Object.toBe (production/debug-build-path/debug-build-paths.test.ts:19:38)

● debug-build-paths › default fixture › explicit path formats › should build multiple pages routes

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

Expected: 0
Received: 1

  33 |           args: ['--debug-build-paths', 'pages/foo.tsx,pages/bar.tsx'],
  34 |         })
> 35 |         expect(buildResult.exitCode).toBe(0)
     |                                      ^
  36 |         expect(buildResult.cliOutput).toBeDefined()
  37 |
  38 |         // Should build both specified pages

  at Object.toBe (production/debug-build-path/debug-build-paths.test.ts:35:38)

● debug-build-paths › default fixture › explicit path formats › should build dynamic route with literal [slug] path

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

Expected: 0
Received: 1

  50 |           args: ['--debug-build-paths', 'app/blog/[slug]/page.tsx'],
  51 |         })
> 52 |         expect(buildResult.exitCode).toBe(0)
     |                                      ^
  53 |         expect(buildResult.cliOutput).toBeDefined()
  54 |
  55 |         // Should build only the blog/[slug] route

  at Object.toBe (production/debug-build-path/debug-build-paths.test.ts:52:38)

● debug-build-paths › default fixture › glob pattern matching › should match app and pages routes with glob patterns

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

Expected: 0
Received: 1

  70 |           args: ['--debug-build-paths', 'pages/*.tsx,app/page.tsx'],
  71 |         })
> 72 |         expect(buildResult.exitCode).toBe(0)
     |                                      ^
  73 |         expect(buildResult.cliOutput).toBeDefined()
  74 |
  75 |         // Should build pages matching the glob

  at Object.toBe (production/debug-build-path/debug-build-paths.test.ts:72:38)

● debug-build-paths › default fixture › glob pattern matching › should match nested routes with app/blog/**/page.tsx pattern

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

Expected: 0
Received: 1

  90 |           args: ['--debug-build-paths', 'app/blog/**/page.tsx'],
  91 |         })
> 92 |         expect(buildResult.exitCode).toBe(0)
     |                                      ^
  93 |         expect(buildResult.cliOutput).toBeDefined()
  94 |
  95 |         // Should build the blog route

  at Object.toBe (production/debug-build-path/debug-build-paths.test.ts:92:38)

● debug-build-paths › default fixture › glob pattern matching › should match dynamic routes with glob before brackets like app/**/[slug]/page.tsx

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

Expected: 0
Received: 1

  108 |           args: ['--debug-build-paths', 'app/**/[slug]/page.tsx'],
  109 |         })
> 110 |         expect(buildResult.exitCode).toBe(0)
      |                                      ^
  111 |         expect(buildResult.cliOutput).toBeDefined()
  112 |
  113 |         // Should build the blog/[slug] route

  at Object.toBe (production/debug-build-path/debug-build-paths.test.ts:110:38)

● debug-build-paths › default fixture › glob pattern matching › should match hybrid pattern with literal [slug] and glob **

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

Expected: 0
Received: 1

  129 |           args: ['--debug-build-paths', 'app/blog/[slug]/**/page.tsx'],
  130 |         })
> 131 |         expect(buildResult.exitCode).toBe(0)
      |                                      ^
  132 |         expect(buildResult.cliOutput).toBeDefined()
  133 |
  134 |         // Should build both blog/[slug] and blog/[slug]/comments routes

  at Object.toBe (production/debug-build-path/debug-build-paths.test.ts:131:38)

● debug-build-paths › default fixture › glob pattern matching › should match multiple app routes with explicit patterns

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

Expected: 0
Received: 1

  151 |           ],
  152 |         })
> 153 |         expect(buildResult.exitCode).toBe(0)
      |                                      ^
  154 |         expect(buildResult.cliOutput).toBeDefined()
  155 |
  156 |         // Should build specified app routes

  at Object.toBe (production/debug-build-path/debug-build-paths.test.ts:153:38)

● debug-build-paths › default fixture › glob pattern matching › should exclude paths matching negation patterns

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

Expected: 0
Received: 1

  173 |           ],
  174 |         })
> 175 |         expect(buildResult.exitCode).toBe(0)
      |                                      ^
  176 |
  177 |         expect(buildResult.cliOutput).toContain('Route (app)')
  178 |         expect(buildResult.cliOutput).toContain('○ /')

  at Object.toBe (production/debug-build-path/debug-build-paths.test.ts:175:38)

● debug-build-paths › default fixture › glob pattern matching › should exclude dynamic route paths with negation

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

Expected: 0
Received: 1

  190 |           ],
  191 |         })
> 192 |         expect(buildResult.exitCode).toBe(0)
      |                                      ^
  193 |
  194 |         expect(buildResult.cliOutput).toContain('Route (app)')
  195 |         expect(buildResult.cliOutput).toContain('/blog/[slug]')

  at Object.toBe (production/debug-build-path/debug-build-paths.test.ts:192:38)

● debug-build-paths › default fixture › glob pattern matching › should support multiple negation patterns

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

Expected: 0
Received: 1

  204 |           ],
  205 |         })
> 206 |         expect(buildResult.exitCode).toBe(0)
      |                                      ^
  207 |
  208 |         expect(buildResult.cliOutput).toContain('Route (app)')
  209 |         expect(buildResult.cliOutput).toContain('○ /')

  at Object.toBe (production/debug-build-path/debug-build-paths.test.ts:206:38)

● debug-build-paths › default fixture › glob pattern matching › should build everything except excluded paths when only negation patterns are provided

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

Expected: 0
Received: 1

  217 |           args: ['--debug-build-paths', '!app/with-type-error/**'],
  218 |         })
> 219 |         expect(buildResult.exitCode).toBe(0)
      |                                      ^
  220 |
  221 |         expect(buildResult.cliOutput).toContain('Route (app)')
  222 |         expect(buildResult.cliOutput).toContain('Route (pages)')

  at Object.toBe (production/debug-build-path/debug-build-paths.test.ts:219:38)

● debug-build-paths › default fixture › typechecking with debug-build-paths › should skip typechecking for excluded app routes

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

Expected: 0
Received: 1

  235 |         })
  236 |         // Build should succeed because the file with type error is not checked
> 237 |         expect(buildResult.exitCode).toBe(0)
      |                                      ^
  238 |         expect(buildResult.cliOutput).toContain('Route (pages)')
  239 |         expect(buildResult.cliOutput).toContain('○ /foo')
  240 |         // Should not include app routes

  at Object.toBe (production/debug-build-path/debug-build-paths.test.ts:237:38)

● debug-build-paths › with-compile-error fixture › should skip compilation of excluded routes with compile errors

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

Expected: 0
Received: 1

  270 |       })
  271 |       // Build should succeed because the broken page is not compiled
> 272 |       expect(buildResult.exitCode).toBe(0)
      |                                    ^
  273 |       expect(buildResult.cliOutput).toContain('Route (app)')
  274 |       expect(buildResult.cliOutput).toContain('○ /valid')
  275 |       // Should not include the broken route

  at Object.toBe (production/debug-build-path/debug-build-paths.test.ts:272:36)

pnpm test-start-turbo test/e2e/app-dir/actions-revalidate-remount/actions-revalidate-remount.test.ts (turbopack) (job)

  • deployment-id-handling disabled > should not append dpl query to all assets for / (DD)
  • deployment-id-handling disabled > should not append dpl query to all assets for /pages-edge (DD)
  • deployment-id-handling disabled > should not append dpl query to all assets for /from-app (DD)
  • deployment-id-handling disabled > should not append dpl query to all assets for /from-app/edge (DD)
  • deployment-id-handling enabled with CUSTOM_DEPLOYMENT_ID > should append dpl query to all assets correctly for / (DD)
  • deployment-id-handling enabled with CUSTOM_DEPLOYMENT_ID > should append dpl query to all assets correctly for /pages-edge (DD)
  • deployment-id-handling enabled with CUSTOM_DEPLOYMENT_ID > should append dpl query to all assets correctly for /from-app (DD)
  • deployment-id-handling enabled with CUSTOM_DEPLOYMENT_ID > should append dpl query to all assets correctly for /from-app/edge (DD)
  • deployment-id-handling enabled with CUSTOM_DEPLOYMENT_ID > should have deployment id env available (DD)
  • deployment-id-handling enabled with CUSTOM_DEPLOYMENT_ID > should have deployment id env available (DD)
  • deployment-id-handling enabled with CUSTOM_DEPLOYMENT_ID > should contain deployment id in prefetch request (DD)
  • deployment-id-handling enabled with CUSTOM_DEPLOYMENT_ID > should contain deployment id in RSC payload request headers (DD)
  • deployment-id-handling enabled with NEXT_DEPLOYMENT_ID > should append dpl query to all assets correctly for / (DD)
  • deployment-id-handling enabled with NEXT_DEPLOYMENT_ID > should append dpl query to all assets correctly for /pages-edge (DD)
  • deployment-id-handling enabled with NEXT_DEPLOYMENT_ID > should append dpl query to all assets correctly for /from-app (DD)
  • deployment-id-handling enabled with NEXT_DEPLOYMENT_ID > should append dpl query to all assets correctly for /from-app/edge (DD)
  • deployment-id-handling enabled with NEXT_DEPLOYMENT_ID > should have deployment id env available (DD)
  • deployment-id-handling enabled with NEXT_DEPLOYMENT_ID > should have deployment id env available (DD)
  • deployment-id-handling enabled with NEXT_DEPLOYMENT_ID > should contain deployment id in prefetch request (DD)
  • deployment-id-handling enabled with NEXT_DEPLOYMENT_ID > should contain deployment id in RSC payload request headers (DD)
Expand output

● deployment-id-handling enabled with NEXT_DEPLOYMENT_ID › should append dpl query to all assets correctly for /

next build failed with code/signal 1

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

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

● deployment-id-handling enabled with NEXT_DEPLOYMENT_ID › should append dpl query to all assets correctly for /pages-edge

next build failed with code/signal 1

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

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

● deployment-id-handling enabled with NEXT_DEPLOYMENT_ID › should append dpl query to all assets correctly for /from-app

next build failed with code/signal 1

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

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

● deployment-id-handling enabled with NEXT_DEPLOYMENT_ID › should append dpl query to all assets correctly for /from-app/edge

next build failed with code/signal 1

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

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

● deployment-id-handling enabled with NEXT_DEPLOYMENT_ID › should have deployment id env available

next build failed with code/signal 1

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

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

● deployment-id-handling enabled with NEXT_DEPLOYMENT_ID › should have deployment id env available

next build failed with code/signal 1

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

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

● deployment-id-handling enabled with NEXT_DEPLOYMENT_ID › should contain deployment id in prefetch request

next build failed with code/signal 1

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

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

● deployment-id-handling enabled with NEXT_DEPLOYMENT_ID › should contain deployment id in RSC payload request headers

next build failed with code/signal 1

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

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

● deployment-id-handling enabled with CUSTOM_DEPLOYMENT_ID › should append dpl query to all assets correctly for /

next build failed with code/signal 1

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

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

● deployment-id-handling enabled with CUSTOM_DEPLOYMENT_ID › should append dpl query to all assets correctly for /pages-edge

next build failed with code/signal 1

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

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

● deployment-id-handling enabled with CUSTOM_DEPLOYMENT_ID › should append dpl query to all assets correctly for /from-app

next build failed with code/signal 1

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

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

● deployment-id-handling enabled with CUSTOM_DEPLOYMENT_ID › should append dpl query to all assets correctly for /from-app/edge

next build failed with code/signal 1

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

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

● deployment-id-handling enabled with CUSTOM_DEPLOYMENT_ID › should have deployment id env available

next build failed with code/signal 1

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

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

● deployment-id-handling enabled with CUSTOM_DEPLOYMENT_ID › should have deployment id env available

next build failed with code/signal 1

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

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

● deployment-id-handling enabled with CUSTOM_DEPLOYMENT_ID › should contain deployment id in prefetch request

next build failed with code/signal 1

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

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

● deployment-id-handling enabled with CUSTOM_DEPLOYMENT_ID › should contain deployment id in RSC payload request headers

next build failed with code/signal 1

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

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

● deployment-id-handling disabled › should not append dpl query to all assets for /

next build failed with code/signal 1

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

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

● deployment-id-handling disabled › should not append dpl query to all assets for /pages-edge

next build failed with code/signal 1

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

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

● deployment-id-handling disabled › should not append dpl query to all assets for /from-app

next build failed with code/signal 1

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

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

● deployment-id-handling disabled › should not append dpl query to all assets for /from-app/edge

next build failed with code/signal 1

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

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

pnpm test-start-turbo test/e2e/app-dir/app-esm-js/index.test.ts (turbopack) (job)

  • build-output-prerender > with a next config file > with --debug-prerender > shows all prerender errors with readable stacks and code frames (DD)
  • build-output-prerender > with a next config file > without --debug-prerender > shows only a single prerender error with a mangled stack (DD)
Expand output

● build-output-prerender › with a next config file › without --debug-prerender › shows only a single prerender error with a mangled stack

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `build-output-prerender with a next config file without --debug-prerender shows only a single prerender error with a mangled stack 1`

- Snapshot  - 13
+ Received  + 20

- Error: Route "/client" used `new Date()` inside a Client Component without a Suspense boundary above it. See more info here: https://nextjs.org/docs/messages/next-prerender-current-time-client
-     at <unknown> (app/client/page.tsx:4:28)
-   2 |
-   3 | export default function Page() {
- > 4 |   return <p>Current time: {new Date().toISOString()}</p>
-     |                            ^
-   5 | }
-   6 |
- To get a more detailed stack trace and pinpoint the issue, try one of the following:
-   - Start the app in development mode by running `next dev`, then open "/client" in your browser to investigate the error.
-   - Rerun the production build with `next build --debug-prerender` to generate better stack traces.
- Error occurred prerendering page "/client". Read more: https://nextjs.org/docs/messages/prerender-error
- Export encountered an error on /client/page: /client, exiting the build.
+ Error: Cannot find module 'react-server-dom-turbopack/server'
+ Require stack:
+ - /tmp/next-install-f68bb251a426f4fd984675be3a27f23d54a4f3287daa03b81237f220ef6bef89/.next/server/chunks/ssr/46c0a_next_dist_client_components_builtin_global-error_3f72d8e7.js
+ - /tmp/next-install-f68bb251a426f4fd984675be3a27f23d54a4f3287daa03b81237f220ef6bef89/.next/server/chunks/ssr/[turbopack]_runtime.js
+ - /tmp/next-install-f68bb251a426f4fd984675be3a27f23d54a4f3287daa03b81237f220ef6bef89/.next/server/app/_not-found/page.js
+ - /tmp/next-install-f68bb251a426f4fd984675be3a27f23d54a4f3287daa03b81237f220ef6bef89/node_modules/.pnpm/file+..+next-repo-4cbe04fa3839c3c4801fe40d999b74df4bf98bb3124ba05ab4ee9af75aa5303c+packages+n_hqfvuph3d7axzg2e5t6vcagji4/node_modules/next/dist/server/require.js
+ - /tmp/next-install-f68bb251a426f4fd984675be3a27f23d54a4f3287daa03b81237f220ef6bef89/node_modules/.pnpm/file+..+next-repo-4cbe04fa3839c3c4801fe40d999b74df4bf98bb3124ba05ab4ee9af75aa5303c+packages+n_hqfvuph3d7axzg2e5t6vcagji4/node_modules/next/dist/server/load-components.js
+ - /tmp/next-install-f68bb251a426f4fd984675be3a27f23d54a4f3287daa03b81237f220ef6bef89/node_modules/.pnpm/file+..+next-repo-4cbe04fa3839c3c4801fe40d999b74df4bf98bb3124ba05ab4ee9af75aa5303c+packages+n_hqfvuph3d7axzg2e5t6vcagji4/node_modules/next/dist/build/utils.js
+ - /tmp/next-install-f68bb251a426f4fd984675be3a27f23d54a4f3287daa03b81237f220ef6bef89/node_modules/.pnpm/file+..+next-repo-4cbe04fa3839c3c4801fe40d999b74df4bf98bb3124ba05ab4ee9af75aa5303c+packages+n_hqfvuph3d7axzg2e5t6vcagji4/node_modules/next/dist/build/worker.js
+ - /tmp/next-install-f68bb251a426f4fd984675be3a27f23d54a4f3287daa03b81237f220ef6bef89/node_modules/.pnpm/file+..+next-repo-4cbe04fa3839c3c4801fe40d999b74df4bf98bb3124ba05ab4ee9af75aa5303c+packages+n_hqfvuph3d7axzg2e5t6vcagji4/node_modules/next/dist/compiled/jest-worker/processChild.js
+     at ignore-listed frames {
+   code: 'MODULE_NOT_FOUND',
+   requireStack: [Array]
+ }
+
+ > Build error occurred
+ Error: Failed to collect page data for /_not-found
+     at ignore-listed frames {
+   type: 'Error'
+ }

  73 |         if (isTurbopack) {
  74 |           // TODO(veil): Why is the location incomplete unless we enable --no-mangling?
> 75 |           expect(getPrerenderOutput(next.cliOutput)).toMatchInlineSnapshot(`
     |                                                      ^
  76 |            "Error: Route "/client" used \`new Date()\` inside a Client Component without a Suspense boundary above it. See more info here: https://nextjs.org/docs/messages/next-prerender-current-time-client
  77 |                at <unknown> (app/client/page.tsx:4:28)
  78 |              2 |

  at Object.toMatchInlineSnapshot (production/app-dir/build-output-prerender/build-output-prerender.test.ts:75:54)

● build-output-prerender › with a next config file › with --debug-prerender › shows all prerender errors with readable stacks and code frames

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `build-output-prerender with a next config file with --debug-prerender shows all prerender errors with readable stacks and code frames 1`

- Snapshot  - 24
+ Received  + 20

- Error: Route "/client" used `new Date()` inside a Client Component without a Suspense boundary above it. See more info here: https://nextjs.org/docs/messages/next-prerender-current-time-client
-     at Page (app/client/page.tsx:4:28)
-   2 |
-   3 | export default function Page() {
- > 4 |   return <p>Current time: {new Date().toISOString()}</p>
-     |                            ^
-   5 | }
-   6 |
- To get a more detailed stack trace and pinpoint the issue, start the app in development mode by running `next dev`, then open "/client" in your browser to investigate the error.
- Error occurred prerendering page "/client". Read more: https://nextjs.org/docs/messages/prerender-error
- Error: Route "/server" used `Math.random()` before accessing either uncached data (e.g. `fetch()`) or Request data (e.g. `cookies()`, `headers()`, `connection()`, and `searchParams`). Accessing random values synchronously in a Server Component requires reading one of these data sources first. Alternatively, consider moving this expression into a Client Component or Cache Component. See more info here: https://nextjs.org/docs/messages/next-prerender-random
-     at Page (app/server/page.tsx:13:27)
-   11 |   await cachedDelay()
-   12 |
- > 13 |   return <p>Random: {Math.random()}</p>
-      |                           ^
-   14 | }
-   15 |
- To get a more detailed stack trace and pinpoint the issue, start the app in development mode by running `next dev`, then open "/server" in your browser to investigate the error.
- Error occurred prerendering page "/server". Read more: https://nextjs.org/docs/messages/prerender-error
-
- > Export encountered errors on following paths:
- 	/client/page: /client
- 	/server/page: /server
+ Error: Cannot find module 'react-server-dom-turbopack/server'
+ Require stack:
+ - /tmp/next-install-8f8a5e046ffb49b49bebcf88368d87c41071a171164c082d0e2b2b4b32b7c978/.next/server/chunks/ssr/46c0a_next_dist_client_components_builtin_global-error_3f72d8e7.js
+ - /tmp/next-install-8f8a5e046ffb49b49bebcf88368d87c41071a171164c082d0e2b2b4b32b7c978/.next/server/chunks/ssr/[turbopack]_runtime.js
+ - /tmp/next-install-8f8a5e046ffb49b49bebcf88368d87c41071a171164c082d0e2b2b4b32b7c978/.next/server/app/_not-found/page.js
+ - /tmp/next-install-8f8a5e046ffb49b49bebcf88368d87c41071a171164c082d0e2b2b4b32b7c978/node_modules/.pnpm/file+..+next-repo-4cbe04fa3839c3c4801fe40d999b74df4bf98bb3124ba05ab4ee9af75aa5303c+packages+n_hqfvuph3d7axzg2e5t6vcagji4/node_modules/next/dist/server/require.js
+ - /tmp/next-install-8f8a5e046ffb49b49bebcf88368d87c41071a171164c082d0e2b2b4b32b7c978/node_modules/.pnpm/file+..+next-repo-4cbe04fa3839c3c4801fe40d999b74df4bf98bb3124ba05ab4ee9af75aa5303c+packages+n_hqfvuph3d7axzg2e5t6vcagji4/node_modules/next/dist/server/load-components.js
+ - /tmp/next-install-8f8a5e046ffb49b49bebcf88368d87c41071a171164c082d0e2b2b4b32b7c978/node_modules/.pnpm/file+..+next-repo-4cbe04fa3839c3c4801fe40d999b74df4bf98bb3124ba05ab4ee9af75aa5303c+packages+n_hqfvuph3d7axzg2e5t6vcagji4/node_modules/next/dist/build/utils.js
+ - /tmp/next-install-8f8a5e046ffb49b49bebcf88368d87c41071a171164c082d0e2b2b4b32b7c978/node_modules/.pnpm/file+..+next-repo-4cbe04fa3839c3c4801fe40d999b74df4bf98bb3124ba05ab4ee9af75aa5303c+packages+n_hqfvuph3d7axzg2e5t6vcagji4/node_modules/next/dist/build/worker.js
+ - /tmp/next-install-8f8a5e046ffb49b49bebcf88368d87c41071a171164c082d0e2b2b4b32b7c978/node_modules/.pnpm/file+..+next-repo-4cbe04fa3839c3c4801fe40d999b74df4bf98bb3124ba05ab4ee9af75aa5303c+packages+n_hqfvuph3d7axzg2e5t6vcagji4/node_modules/next/dist/compiled/jest-worker/processChild.js
+     at ignore-listed frames {
+   code: 'MODULE_NOT_FOUND',
+   requireStack: [Array]
+ }
+
+ > Build error occurred
+ Error: Failed to collect page data for /_not-found
+     at ignore-listed frames {
+   type: 'Error'
+ }

  195 |       it('shows all prerender errors with readable stacks and code frames', async () => {
  196 |         if (isTurbopack) {
> 197 |           expect(getPrerenderOutput(next.cliOutput)).toMatchInlineSnapshot(`
      |                                                      ^
  198 |            "Error: Route "/client" used \`new Date()\` inside a Client Component without a Suspense boundary above it. See more info here: https://nextjs.org/docs/messages/next-prerender-current-time-client
  199 |                at Page (app/client/page.tsx:4:28)
  200 |              2 |

  at Object.toMatchInlineSnapshot (production/app-dir/build-output-prerender/build-output-prerender.test.ts:197:54)

pnpm test-start-turbo test/e2e/app-dir/app-css-pageextensions/index.test.ts (turbopack) (job)

  • segment cache (deployment skew) > does not crash when prefetching a dynamic, non-PPR page on a different deployment (DD)
  • segment cache (deployment skew) > does not crash when prefetching a static page on a different deployment (DD)
Expand output

● segment cache (deployment skew) › does not crash when prefetching a dynamic, non-PPR page on a different deployment

connect ECONNREFUSED 127.0.0.1:38105

● segment cache (deployment skew) › does not crash when prefetching a dynamic, non-PPR page on a different deployment

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

  37 |   })
  38 |
> 39 |   it(
     |   ^
  40 |     'does not crash when prefetching a dynamic, non-PPR page ' +
  41 |       'on a different deployment',
  42 |     async () => {

  at it (e2e/app-dir/segment-cache/deployment-skew/deployment-skew.test.ts:39:3)
  at Object.describe (e2e/app-dir/segment-cache/deployment-skew/deployment-skew.test.ts:8:1)

● segment cache (deployment skew) › does not crash when prefetching a static page on a different deployment

connect ECONNREFUSED 127.0.0.1:38105

● segment cache (deployment skew) › does not crash when prefetching a static page on a different deployment

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

  72 |   )
  73 |
> 74 |   it(
     |   ^
  75 |     'does not crash when prefetching a static page on a different deployment',
  76 |     async () => {
  77 |       // Same as the previous test, but for a static page

  at it (e2e/app-dir/segment-cache/deployment-skew/deployment-skew.test.ts:74:3)
  at Object.describe (e2e/app-dir/segment-cache/deployment-skew/deployment-skew.test.ts:8:1)

● Test suite failed to run

thrown: "Exceeded timeout of 120000 ms for a hook.
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."

  33 |   })
  34 |
> 35 |   afterAll(async () => {
     |   ^
  36 |     await cleanup()
  37 |   })
  38 |

  at afterAll (e2e/app-dir/segment-cache/deployment-skew/deployment-skew.test.ts:35:3)
  at Object.describe (e2e/app-dir/segment-cache/deployment-skew/deployment-skew.test.ts:8:1)

pnpm test test/integration/404-page-app/test/index.test.ts (turbopack) (job)

  • router.isReady with appGip > development mode > isReady should be true immediately for pages without getStaticProps (DD)
  • router.isReady with appGip > development mode > isReady should be true immediately for pages without getStaticProps, with query (DD)
  • router.isReady with appGip > development mode > isReady should be true immediately for getStaticProps page without query (DD)
  • router.isReady with appGip > development mode > isReady should be true after query update for getStaticProps page with query (DD)
Expand output

● router.isReady with appGip › development mode › isReady should be true immediately for pages without getStaticProps

TIMED OUT: success

undefined

TypeError: Cannot read properties of undefined (reading 'sort')

  724 |   }
  725 |   console.error('TIMED OUT CHECK: ', { regex, content, lastErr })
> 726 |   throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |         ^
  727 | }
  728 |
  729 | export class File {

  at check (lib/next-test-utils.ts:726:9)
  at Object.<anonymous> (integration/router-is-ready-app-gip/test/index.test.ts:32:5)

● router.isReady with appGip › development mode › isReady should be true immediately for pages without getStaticProps, with query

TIMED OUT: success

undefined

TypeError: Cannot read properties of undefined (reading 'sort')

  724 |   }
  725 |   console.error('TIMED OUT CHECK: ', { regex, content, lastErr })
> 726 |   throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |         ^
  727 | }
  728 |
  729 | export class File {

  at check (lib/next-test-utils.ts:726:9)
  at Object.<anonymous> (integration/router-is-ready-app-gip/test/index.test.ts:37:5)

● router.isReady with appGip › development mode › isReady should be true immediately for getStaticProps page without query

TIMED OUT: success

undefined

TypeError: Cannot read properties of undefined (reading 'sort')

  724 |   }
  725 |   console.error('TIMED OUT CHECK: ', { regex, content, lastErr })
> 726 |   throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |         ^
  727 | }
  728 |
  729 | export class File {

  at check (lib/next-test-utils.ts:726:9)
  at Object.<anonymous> (integration/router-is-ready-app-gip/test/index.test.ts:42:5)

● router.isReady with appGip › development mode › isReady should be true after query update for getStaticProps page with query

TIMED OUT: success

undefined

TypeError: Cannot read properties of undefined (reading 'sort')

  724 |   }
  725 |   console.error('TIMED OUT CHECK: ', { regex, content, lastErr })
> 726 |   throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |         ^
  727 | }
  728 |
  729 | export class File {

  at check (lib/next-test-utils.ts:726:9)
  at Object.<anonymous> (integration/router-is-ready-app-gip/test/index.test.ts:47:5)

pnpm test-dev-turbo test/development/app-dir/browser-log-forwarding/fixtures/error-level/error-level.test.ts (turbopack) (job)

  • parallel-routes-and-interception-basepath > should show parallel intercepted slot with basepath (DD)
  • parallel-routes-and-interception-basepath > should show normal route via direct link with basepath when parallel intercepted slot exist (DD)
Expand output

● parallel-routes-and-interception-basepath › should show parallel intercepted slot with basepath

page.waitForSelector: Timeout 5000ms exceeded.
Call log:
  - waiting for locator('#link-to-nested') to be visible

  519 |
  520 |     return this.startChain(async () => {
> 521 |       const el = await page.waitForSelector(selector, {
      |                             ^
  522 |         timeout,
  523 |         state,
  524 |       })

  at waitForSelector (lib/browsers/playwright.ts:521:29)
  at Playwright._chain (lib/browsers/playwright.ts:651:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:632:17)
  at Playwright.startChain [as waitForElementByCss] (lib/browsers/playwright.ts:520:17)
  at Playwright.waitForElementByCss [as elementByCss] (lib/browsers/playwright.ts:405:17)
  at Object.elementByCss (e2e/app-dir/parallel-routes-and-interception-basepath/parallel-routes-and-interception-basepath.test.ts:10:19)
  at Proxy._chain (lib/browsers/playwright.ts:651:23)
  at Proxy._chain (lib/browsers/playwright.ts:627:17)
  at Proxy.continueChain (lib/browsers/playwright.ts:471:17)
  at Object.click (e2e/app-dir/parallel-routes-and-interception-basepath/parallel-routes-and-interception-basepath.test.ts:10:51)

● parallel-routes-and-interception-basepath › should show normal route via direct link with basepath when parallel intercepted slot exist

page.waitForSelector: Timeout 5000ms exceeded.
Call log:
  - waiting for locator('#nested-page-full') to be visible

  519 |
  520 |     return this.startChain(async () => {
> 521 |       const el = await page.waitForSelector(selector, {
      |                             ^
  522 |         timeout,
  523 |         state,
  524 |       })

  at waitForSelector (lib/browsers/playwright.ts:521:29)
  at Playwright._chain (lib/browsers/playwright.ts:651:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:632:17)
  at Playwright.startChain [as waitForElementByCss] (lib/browsers/playwright.ts:520:17)
  at Playwright.waitForElementByCss [as elementByCss] (lib/browsers/playwright.ts:405:17)
  at Object.elementByCss (e2e/app-dir/parallel-routes-and-interception-basepath/parallel-routes-and-interception-basepath.test.ts:19:8)
  at Proxy._chain (lib/browsers/playwright.ts:651:23)
  at Proxy._chain (lib/browsers/playwright.ts:627:17)
  at Proxy.continueChain (lib/browsers/playwright.ts:433:17)
  at Object.text (e2e/app-dir/parallel-routes-and-interception-basepath/parallel-routes-and-interception-basepath.test.ts:20:8)

pnpm test-dev-turbo test/development/app-dir/browser-log-forwarding/fixtures/verbose-level/verbose-level.test.ts (turbopack) (job)

  • Catch-all Route CSS Module Usage ({"sass": "1.54.0"}) > should render the module (DD)
  • Catch-all Route CSS Module Usage ({"sass-embedded": "1.75.0"}) > should render the module (DD)
Expand output

● Catch-all Route CSS Module Usage ({"sass": "1.54.0"}) › should render the module

page.waitForSelector: Timeout 5000ms exceeded.
Call log:
  - waiting for locator('#my-div') to be visible

  519 |
  520 |     return this.startChain(async () => {
> 521 |       const el = await page.waitForSelector(selector, {
      |                             ^
  522 |         timeout,
  523 |         state,
  524 |       })

  at waitForSelector (lib/browsers/playwright.ts:521:29)
  at Playwright._chain (lib/browsers/playwright.ts:651:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:632:17)
  at Playwright.startChain [as waitForElementByCss] (lib/browsers/playwright.ts:520:17)
  at Playwright.waitForElementByCss [as elementByCss] (lib/browsers/playwright.ts:405:17)
  at Object.elementByCss (e2e/app-dir/scss/catch-all-module/catch-all-module.test.ts:28:23)
  at Proxy._chain (lib/browsers/playwright.ts:651:23)
  at Proxy._chain (lib/browsers/playwright.ts:627:17)
  at Proxy.continueChain (lib/browsers/playwright.ts:451:17)
  at Object.getComputedCss (e2e/app-dir/scss/catch-all-module/catch-all-module.test.ts:28:47)

● Catch-all Route CSS Module Usage ({"sass-embedded": "1.75.0"}) › should render the module

page.waitForSelector: Timeout 5000ms exceeded.
Call log:
  - waiting for locator('#my-div') to be visible

  519 |
  520 |     return this.startChain(async () => {
> 521 |       const el = await page.waitForSelector(selector, {
      |                             ^
  522 |         timeout,
  523 |         state,
  524 |       })

  at waitForSelector (lib/browsers/playwright.ts:521:29)
  at Playwright._chain (lib/browsers/playwright.ts:651:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:632:17)
  at Playwright.startChain [as waitForElementByCss] (lib/browsers/playwright.ts:520:17)
  at Playwright.waitForElementByCss [as elementByCss] (lib/browsers/playwright.ts:405:17)
  at Object.elementByCss (e2e/app-dir/scss/catch-all-module/catch-all-module.test.ts:28:23)
  at Proxy._chain (lib/browsers/playwright.ts:651:23)
  at Proxy._chain (lib/browsers/playwright.ts:627:17)
  at Proxy.continueChain (lib/browsers/playwright.ts:451:17)
  at Object.getComputedCss (e2e/app-dir/scss/catch-all-module/catch-all-module.test.ts:28:47)

@codspeed-hq
Copy link

codspeed-hq bot commented Jan 19, 2026

Merging this PR will improve performance by ×6.4

⚡ 13 improved benchmarks
✅ 4 untouched benchmarks
⏩ 3 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation build[joy] 2.1 s 1.2 s +70.78%
Simulation build[framer-motion-single] 2.2 s 1.3 s +65.14%
Simulation build[framer-motion-all] 3 s 2.1 s +40.72%
Simulation build[shiki] 5.4 s 4.6 s +17.95%
Simulation build[lucide-react-all] 8.2 s 7.5 s +9.28%
Simulation build[date-fns-all] 2.2 s 1.4 s +62.07%
Simulation build[mui] 3.1 s 2.2 s +42.93%
Simulation build[date-fns-single] 1,388.7 ms 550.8 ms ×2.5
Simulation build[lucide-react-single] 965.6 ms 150.2 ms ×6.4
Simulation packages-bundle.js[tracing] 929.4 ms 896 ms +3.73%
Simulation jsonwebtoken.js[full] 362.4 ms 327.5 ms +10.66%
Simulation packages-bundle.js[full] 1.1 s 1.1 s +3.17%
Simulation jsonwebtoken.js[tracing] 320.1 ms 288.4 ms +10.97%

Comparing sokra/selective-env-vars (4096331) with canary (a0e2d59)2

Open in CodSpeed

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on sokra/equivalent-selective-read (2494303) during the generation of this report, so canary (a0e2d59) was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

}
}

#[turbo_tasks::value(transparent, cell = "keyed")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The members() function extracts the wrong property name from paths ending with Call or TypeOf segments, returning the previous Name instead of the actual property name at the end of the path.

Fix on Vercel

return Ok(());
}
}
if let Some(name) = var.get_definable_name() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing var_graph check for reassigned free variables when resolving references

Fix on Vercel

analysis: &mut AnalyzeEcmascriptModuleResultBuilder,
) -> Result<()> {
if let Some(prop) = prop.as_str() {
let prop_seg = DefinableNameSegment::Name(prop.into());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing var_graph check allows using incorrect compile-time references for reassigned free variables in handle_member

Fix on Vercel

@nextjs-bot
Copy link
Collaborator

Stats from current PR

✅ No significant changes detected

📊 All Metrics
📖 Metrics Glossary

Dev Server Metrics:

  • Listen = TCP port starts accepting connections
  • First Request = HTTP server returns successful response
  • Cold = Fresh build (no cache)
  • Warm = With cached build artifacts

Build Metrics:

  • Fresh = Clean build (no .next directory)
  • Cached = With existing .next directory

Change Thresholds:

  • Time: Changes < 50ms AND < 10%, OR < 2% are insignificant
  • Size: Changes < 1KB AND < 1% are insignificant
  • All other changes are flagged to catch regressions

⚡ Dev Server

Metric Canary PR Change Trend
Cold (Listen) 455ms 455ms ▁▁▁▁▁
Cold (Ready in log) 439ms 439ms ▇▇▇█▆
Cold (First Request) 1.213s 1.191s █▇▇██
Warm (Listen) 456ms 456ms ▁▁▁▁▁
Warm (Ready in log) 444ms 443ms ▁▁▁▁▁
Warm (First Request) 343ms 347ms █▇▆▃▇
📦 Dev Server (Webpack) (Legacy)

📦 Dev Server (Webpack)

Metric Canary PR Change Trend
Cold (Listen) 456ms 456ms ▁▁▁▁▁
Cold (Ready in log) 435ms 436ms ▇▇▅█▇
Cold (First Request) 1.814s 1.805s ▅▅▃▇▄
Warm (Listen) 456ms 455ms ▁▁▁▁▁
Warm (Ready in log) 436ms 436ms █▅▄▅▅
Warm (First Request) 1.817s 1.817s ▆▄▃▄▃

⚡ Production Builds

Metric Canary PR Change Trend
Fresh Build 4.292s 4.462s ▁▁▁▁▁
Cached Build 4.427s 4.379s ▁▁▁▁▁
📦 Production Builds (Webpack) (Legacy)

📦 Production Builds (Webpack)

Metric Canary PR Change Trend
Fresh Build 13.854s 13.880s ▂▁▁▆▁
Cached Build 13.976s 14.009s ▂▁▁▆▁
node_modules Size 458 MB 458 MB █████
📦 Bundle Sizes

Bundle Sizes

⚡ Turbopack

Client

Main Bundles: **430 kB** → **430 kB** ✅ -130 B

82 files with content-based hashes (individual files not comparable between builds)

Server

Middleware
Canary PR Change
middleware-b..fest.js gzip 762 B 764 B
Total 762 B 764 B ⚠️ +2 B
Build Details
Build Manifests
Canary PR Change
_buildManifest.js gzip 450 B 449 B
Total 450 B 449 B ✅ -1 B

📦 Webpack

Client

Main Bundles
Canary PR Change
2086.HASH.js gzip 169 B N/A -
2161-HASH.js gzip 5.41 kB N/A -
2747-HASH.js gzip 4.48 kB N/A -
4322-HASH.js gzip 52.3 kB N/A -
ec793fe8-HASH.js gzip 62.3 kB N/A -
framework-HASH.js gzip 59.8 kB 59.8 kB
main-app-HASH.js gzip 251 B 254 B 🔴 +3 B (+1%)
main-HASH.js gzip 38.6 kB 39 kB
webpack-HASH.js gzip 1.68 kB 1.68 kB
1596.HASH.js gzip N/A 169 B -
2658-HASH.js gzip N/A 51.9 kB -
6349-HASH.js gzip N/A 4.46 kB -
7019-HASH.js gzip N/A 5.43 kB -
b17a3386-HASH.js gzip N/A 62.3 kB -
Total 225 kB 225 kB ✅ -13 B
Polyfills
Canary PR Change
polyfills-HASH.js gzip 39.4 kB 39.4 kB
Total 39.4 kB 39.4 kB
Pages
Canary PR Change
_app-HASH.js gzip 194 B 193 B
_error-HASH.js gzip 182 B 182 B
css-HASH.js gzip 336 B 335 B
dynamic-HASH.js gzip 1.8 kB 1.8 kB
edge-ssr-HASH.js gzip 256 B 256 B
head-HASH.js gzip 352 B 349 B
hooks-HASH.js gzip 385 B 384 B
image-HASH.js gzip 580 B 580 B
index-HASH.js gzip 259 B 258 B
link-HASH.js gzip 2.5 kB 2.51 kB
routerDirect..HASH.js gzip 319 B 317 B
script-HASH.js gzip 385 B 387 B
withRouter-HASH.js gzip 316 B 315 B
1afbb74e6ecf..834.css gzip 106 B 106 B
Total 7.97 kB 7.96 kB ✅ -8 B

Server

Edge SSR
Canary PR Change
edge-ssr.js gzip 125 kB 125 kB
page.js gzip 243 kB 238 kB 🟢 4.92 kB (-2%)
Total 368 kB 363 kB ✅ -4.9 kB
Middleware
Canary PR Change
middleware-b..fest.js gzip 617 B 618 B
middleware-r..fest.js gzip 155 B 156 B
middleware.js gzip 32.9 kB 33.3 kB 🔴 +373 B (+1%)
edge-runtime..pack.js gzip 842 B 842 B
Total 34.5 kB 34.9 kB ⚠️ +375 B
Build Details
Build Manifests
Canary PR Change
_buildManifest.js gzip 738 B 738 B
Total 738 B 738 B
Build Cache
Canary PR Change
0.pack gzip 3.66 MB 3.67 MB 🔴 +4.3 kB (+0%)
index.pack gzip 99.3 kB 101 kB 🔴 +1.47 kB (+1%)
index.pack.old gzip 99.4 kB 100 kB
Total 3.86 MB 3.87 MB ⚠️ +6.56 kB

🔄 Shared (bundler-independent)

Runtimes
Canary PR Change
app-page-exp...dev.js gzip 304 kB 304 kB
app-page-exp..prod.js gzip 158 kB 158 kB
app-page-tur...dev.js gzip 304 kB 304 kB
app-page-tur..prod.js gzip 158 kB 158 kB
app-page-tur...dev.js gzip 300 kB 300 kB
app-page-tur..prod.js gzip 156 kB 156 kB
app-page.run...dev.js gzip 300 kB 300 kB
app-page.run..prod.js gzip 156 kB 156 kB
app-route-ex...dev.js gzip 68.8 kB 68.8 kB
app-route-ex..prod.js gzip 47.6 kB 47.6 kB
app-route-tu...dev.js gzip 68.8 kB 68.8 kB
app-route-tu..prod.js gzip 47.6 kB 47.6 kB
app-route-tu...dev.js gzip 68.4 kB 68.4 kB
app-route-tu..prod.js gzip 47.4 kB 47.4 kB
app-route.ru...dev.js gzip 68.4 kB 68.4 kB
app-route.ru..prod.js gzip 47.4 kB 47.4 kB
dist_client_...dev.js gzip 324 B 324 B
dist_client_...dev.js gzip 326 B 326 B
dist_client_...dev.js gzip 318 B 318 B
dist_client_...dev.js gzip 317 B 317 B
pages-api-tu...dev.js gzip 41.2 kB 41.2 kB
pages-api-tu..prod.js gzip 31.3 kB 31.3 kB
pages-api.ru...dev.js gzip 41.1 kB 41.1 kB
pages-api.ru..prod.js gzip 31.2 kB 31.2 kB
pages-turbo....dev.js gzip 50.8 kB 50.8 kB
pages-turbo...prod.js gzip 38.2 kB 38.2 kB
pages.runtim...dev.js gzip 50.7 kB 50.7 kB
pages.runtim..prod.js gzip 38.2 kB 38.2 kB
server.runti..prod.js gzip 62.2 kB 62.2 kB
Total 2.69 MB 2.69 MB ✅ -1 B

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.

3 participants