next.js
next.js copied to clipboard
Implement loadable with lazy and suspense for next dynamic
Bug
- [ ] Related issues linked using
fixes #number
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see
contributing.md
Feature
- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using
fixes #number
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see
contributing.md
Documentation / Examples
- [ ] Make sure the linting passes by running
pnpm build && pnpm lint
- [ ] The "examples guidelines" are followed from our contributing doc
Failing test suites
Commit: c3355332453e39434d9b6bfad85cb9ef447676dc
pnpm testheadless test/integration/with-electron/test/index.test.js
Expand output
● Test suite failed to run
Cannot find module '/home/runner/work/next.js/next.js/test/integration/with-electron/app/node_modules/electron' from 'integration/with-electron/test/index.test.js'
10 |
11 | if (process.env.TEST_ELECTRON) {
> 12 | const electron = require(join(nextdir, 'node_modules/electron'))
| ^
13 | const { Application } = require(join(nextdir, 'node_modules/spectron'))
14 |
15 | describe('Parse Relative Url', () => {
at Resolver.resolveModule (../node_modules/.pnpm/[email protected]/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.<anonymous> (integration/with-electron/test/index.test.js:12:20)
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/integration/conflicting-app-page-error/test/index.test.js
- Conflict between app file and page file > next dev > should print error for conflicting app/page
- Conflict between app file and page file > next dev > should show error overlay for /
- Conflict between app file and page file > next dev > should show error overlay for /hello
- Conflict between app file and page file > next dev > should show error overlay for /another
- Conflict between app file and page file > next dev > should not show error overlay for /non-conflict-pages
- Conflict between app file and page file > next dev > should not show error overlay for /non-conflict
Expand output
● Conflict between app file and page file › next dev › should print error for conflicting app/page
expect(received).toMatch(expected)
Expected pattern: /Conflicting app and page files were found/
Received string: "ready - started server on 0.0.0.0:41425, url: http://localhost:41425
warn - You have enabled experimental feature (appDir) in next.config.js.
warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
info - Thank you for testing `appDir` please leave your feedback at https://nextjs.link/app-feedback·
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/next-server.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/next.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/lib/start-server.js
- /home/runner/work/next.js/next.js/packages/next/dist/cli/next-dev.js
- /home/runner/work/next.js/next.js/packages/next/dist/lib/commands.js
- /home/runner/work/next.js/next.js/packages/next/dist/bin/next
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
at Module.load (../node:internal/modules/cjs/loader:1033:32) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js',
'/home/runner/work/next.js/next.js/packages/next/dist/server/render.js',
'/home/runner/work/next.js/next.js/packages/next/dist/server/next-server.js',
'/home/runner/work/next.js/next.js/packages/next/dist/server/dev/next-dev-server.js',
'/home/runner/work/next.js/next.js/packages/next/dist/server/next.js',
'/home/runner/work/next.js/next.js/packages/next/dist/server/lib/start-server.js',
'/home/runner/work/next.js/next.js/packages/next/dist/cli/next-dev.js',
'/home/runner/work/next.js/next.js/packages/next/dist/lib/commands.js',
'/home/runner/work/next.js/next.js/packages/next/dist/bin/next'
]
}
"
at Object.<anonymous> (integration/conflicting-app-page-error/test/index.test.js:22:20)
● Conflict between app file and page file › next dev › should show error overlay for /
page.goto: net::ERR_CONNECTION_REFUSED at http://localhost:41425/
=========================== logs ===========================
navigating to "http://localhost:41425/", waiting until "load"
============================================================
168 | this.activeTrace = encodeURIComponent(url)
169 | }
> 170 | await page.goto(url, { waitUntil: 'load' })
| ^
171 | }
172 |
173 | back(): BrowserInterface {
at Playwright.loadPage (lib/browsers/playwright.ts:170:16)
at webdriver (lib/next-webdriver.ts:110:3)
at Object.<anonymous> (integration/conflicting-app-page-error/test/index.test.js:37:23)
● Conflict between app file and page file › next dev › should show error overlay for /hello
page.goto: net::ERR_CONNECTION_REFUSED at http://localhost:41425/hello
=========================== logs ===========================
navigating to "http://localhost:41425/hello", waiting until "load"
============================================================
168 | this.activeTrace = encodeURIComponent(url)
169 | }
> 170 | await page.goto(url, { waitUntil: 'load' })
| ^
171 | }
172 |
173 | back(): BrowserInterface {
at Playwright.loadPage (lib/browsers/playwright.ts:170:16)
at webdriver (lib/next-webdriver.ts:110:3)
at Object.<anonymous> (integration/conflicting-app-page-error/test/index.test.js:45:23)
● Conflict between app file and page file › next dev › should show error overlay for /another
page.goto: net::ERR_CONNECTION_REFUSED at http://localhost:41425/another
=========================== logs ===========================
navigating to "http://localhost:41425/another", waiting until "load"
============================================================
168 | this.activeTrace = encodeURIComponent(url)
169 | }
> 170 | await page.goto(url, { waitUntil: 'load' })
| ^
171 | }
172 |
173 | back(): BrowserInterface {
at Playwright.loadPage (lib/browsers/playwright.ts:170:16)
at webdriver (lib/next-webdriver.ts:110:3)
at Object.<anonymous> (integration/conflicting-app-page-error/test/index.test.js:53:23)
● Conflict between app file and page file › next dev › should not show error overlay for /non-conflict-pages
page.goto: net::ERR_CONNECTION_REFUSED at http://localhost:41425/non-conflict-pages
=========================== logs ===========================
navigating to "http://localhost:41425/non-conflict-pages", waiting until "load"
============================================================
168 | this.activeTrace = encodeURIComponent(url)
169 | }
> 170 | await page.goto(url, { waitUntil: 'load' })
| ^
171 | }
172 |
173 | back(): BrowserInterface {
at Playwright.loadPage (lib/browsers/playwright.ts:170:16)
at webdriver (lib/next-webdriver.ts:110:3)
at Object.<anonymous> (integration/conflicting-app-page-error/test/index.test.js:61:23)
● Conflict between app file and page file › next dev › should not show error overlay for /non-conflict
page.goto: net::ERR_CONNECTION_REFUSED at http://localhost:41425/non-conflict
=========================== logs ===========================
navigating to "http://localhost:41425/non-conflict", waiting until "load"
============================================================
168 | this.activeTrace = encodeURIComponent(url)
169 | }
> 170 | await page.goto(url, { waitUntil: 'load' })
| ^
171 | }
172 |
173 | back(): BrowserInterface {
at Playwright.loadPage (lib/browsers/playwright.ts:170:16)
at webdriver (lib/next-webdriver.ts:110:3)
at Object.<anonymous> (integration/conflicting-app-page-error/test/index.test.js:68:23)
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/conflicting-app-page-error/test/index.test.js:92:14
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/conflicting-app-page-error/test/index.test.js:108:14
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/integration/compression/test/index.test.js
- Compression > should compress responses by default
Expand output
● Compression › should compress responses by default
FetchError: request to http://localhost:35915/ failed, reason: connect ECONNREFUSED 127.0.0.1:35915
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/compression/test/index.test.js:22:25
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/integration/app-document-remove-hmr/test/index.test.js
- _app removal HMR > should HMR when _app is removed
- _app removal HMR > should HMR when _document is removed
Expand output
● _app removal HMR › should HMR when _app is removed
page.goto: net::ERR_CONNECTION_REFUSED at http://localhost:38655/
=========================== logs ===========================
navigating to "http://localhost:38655/", waiting until "load"
============================================================
168 | this.activeTrace = encodeURIComponent(url)
169 | }
> 170 | await page.goto(url, { waitUntil: 'load' })
| ^
171 | }
172 |
173 | back(): BrowserInterface {
at Playwright.loadPage (lib/browsers/playwright.ts:170:16)
at webdriver (lib/next-webdriver.ts:110:3)
at Object.<anonymous> (integration/app-document-remove-hmr/test/index.test.js:26:23)
● _app removal HMR › should HMR when _document is removed
page.goto: net::ERR_CONNECTION_REFUSED at http://localhost:38655/
=========================== logs ===========================
navigating to "http://localhost:38655/", waiting until "load"
============================================================
168 | this.activeTrace = encodeURIComponent(url)
169 | }
> 170 | await page.goto(url, { waitUntil: 'load' })
| ^
171 | }
172 |
173 | back(): BrowserInterface {
at Playwright.loadPage (lib/browsers/playwright.ts:170:16)
at webdriver (lib/next-webdriver.ts:110:3)
at Object.<anonymous> (integration/app-document-remove-hmr/test/index.test.js:78:23)
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/app-document-remove-hmr/test/index.test.js:21:25
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/integration/broken-webpack-plugin/test/index.test.js
- Handles a broken webpack plugin (precompile) > should render error correctly
Expand output
● Handles a broken webpack plugin (precompile) › should render error correctly
FetchError: request to http://localhost:39285/ failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/integration/babel/test/index.test.js
- Babel > Rendering via HTTP > Should compile a page with flowtype correctly
Expand output
● Babel › Rendering via HTTP › Should compile a page with flowtype correctly
FetchError: request to http://localhost:38107/ failed, reason: connect ECONNREFUSED 127.0.0.1:38107
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/babel/test/index.test.js:25:25
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/integration/app-document/test/index.test.js
- Document and App > should not have any missing key warnings
- Document and App > Client side > should detect the changes to pages/_app.js and display it
- Document and App > Client side > should detect the changes to pages/_document.js and display it
- Document and App > Client side > should keep state between page navigations
- Document and App > Client side > It should share module state with pages
- Document and App > Rendering via HTTP > _app > It shows a custom tag
- Document and App > Rendering via HTTP > _app > It should share module state with pages
- Document and App > Rendering via HTTP > _app > It should show valid error when thrown in _app getInitialProps
- Document and App > Rendering via HTTP > _document > should include required elements in rendered html
- Document and App > Rendering via HTTP > _document > Document.getInitialProps returns html prop representing app shell
- Document and App > Rendering via HTTP > _document > It adds nonces to all scripts and preload links
- Document and App > Rendering via HTTP > _document > It adds crossOrigin to all scripts and preload links
- Document and App > Rendering via HTTP > _document > It renders ctx.renderPage with enhancer correctly
- Document and App > Rendering via HTTP > _document > It renders ctx.renderPage with enhanceComponent correctly
- Document and App > Rendering via HTTP > _document > It renders ctx.renderPage with enhanceApp correctly
- Document and App > Rendering via HTTP > _document > It renders ctx.renderPage with enhanceApp and enhanceComponent correctly
- Document and App > Rendering via HTTP > _document > It adds a timestamp to link tags with preload attribute to invalidate the cache (DEV only)
- Document and App > With CSP enabled > should load inline script by hash
- Document and App > With CSP enabled > should load inline script by nonce
Expand output
● Document and App › should not have any missing key warnings
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Document and App › Rendering via HTTP › _document › should include required elements in rendered html
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Document and App › Rendering via HTTP › _document › Document.getInitialProps returns html prop representing app shell
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Document and App › Rendering via HTTP › _document › It adds nonces to all scripts and preload links
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Document and App › Rendering via HTTP › _document › It adds crossOrigin to all scripts and preload links
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Document and App › Rendering via HTTP › _document › It renders ctx.renderPage with enhancer correctly
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Document and App › Rendering via HTTP › _document › It renders ctx.renderPage with enhanceComponent correctly
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Document and App › Rendering via HTTP › _document › It renders ctx.renderPage with enhanceApp correctly
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Document and App › Rendering via HTTP › _document › It renders ctx.renderPage with enhanceApp and enhanceComponent correctly
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Document and App › Rendering via HTTP › _document › It adds a timestamp to link tags with preload attribute to invalidate the cache (DEV only)
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Document and App › Rendering via HTTP › _app › It shows a custom tag
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Document and App › Rendering via HTTP › _app › It should share module state with pages
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Document and App › Rendering via HTTP › _app › It should show valid error when thrown in _app getInitialProps
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Document and App › Client side › should detect the changes to pages/_app.js and display it
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Document and App › Client side › should detect the changes to pages/_document.js and display it
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Document and App › Client side › should keep state between page navigations
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Document and App › Client side › It should share module state with pages
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Document and App › With CSP enabled › should load inline script by hash
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Document and App › With CSP enabled › should load inline script by nonce
FetchError: request to http://localhost:33153/ failed, reason: connect ECONNREFUSED 127.0.0.1:33153
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/app-document/test/index.test.js:36:25
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/integration/bigint/test/index.test.js
- bigint API route support > dev mode > should return 200
- bigint API route support > dev mode > should return the BigInt result text
- bigint API route support > server mode > should return 200
- bigint API route support > server mode > should return the BigInt result text
Expand output
● bigint API route support › dev mode › should return 200
FetchError: request to http://localhost:38457/api/bigint failed, reason: connect ECONNREFUSED 127.0.0.1:38457
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● bigint API route support › dev mode › should return the BigInt result text
FetchError: request to http://localhost:38457/api/bigint failed, reason: connect ECONNREFUSED 127.0.0.1:38457
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● bigint API route support › server mode › should return 200
command failed with code 1
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/2)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (2/2)
> Build error occurred
Error: Export encountered errors on following paths:
/_error: /404
/_error: /500
at ../packages/next/dist/export/index.js:408:19
at runMicrotasks (<anonymous>)
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
● bigint API route support › server mode › should return the BigInt result text
command failed with code 1
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/2)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (2/2)
> Build error occurred
Error: Export encountered errors on following paths:
/_error: /404
/_error: /500
at ../packages/next/dist/export/index.js:408:19
at runMicrotasks (<anonymous>)
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/bigint/test/index.test.js:41:27
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/bigint/test/index.test.js:53:27
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/integration/app-aspath/test/index.test.js
- App asPath > should not have any changes in asPath after a bundle rebuild
Expand output
● App asPath › should not have any changes in asPath after a bundle rebuild
FetchError: request to http://localhost:42305/ failed, reason: connect ECONNREFUSED 127.0.0.1:42305
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/app-aspath/test/index.test.js:25:25
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/unit/next-dynamic.test.tsx
Expand output
● Test suite failed to run
Cannot find module './dynamic-error-boundary' from '../packages/next/dist/shared/lib/loadable.js'
Require stack:
/home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
/home/runner/work/next.js/next.js/packages/next/dist/shared/lib/dynamic.js
/home/runner/work/next.js/next.js/packages/next/dynamic.js
unit/next-dynamic.test.tsx
24 | import React from 'react'
25 | import { LoadableContext } from './loadable-context'
> 26 | import DynamicBoundary from './dynamic-error-boundary'
| ^
27 |
28 | const ALL_INITIALIZERS = []
29 | const READY_INITIALIZERS = []
at Resolver.resolveModule (../node_modules/.pnpm/[email protected]/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.<anonymous> (../packages/next/shared/lib/loadable.js:26:55)
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/integration/build-indicator/test/index.test.js
- Build Activity Indicator > Disabled with next.config.js > Does not add the build indicator container
- Build Activity Indicator > Enabled > Adds the build indicator container
- Build Activity Indicator > Enabled > Shows the build indicator when a page is built during navigation
- Build Activity Indicator > Enabled > Shows build indicator when page is built from modifying
Expand output
● Build Activity Indicator › Enabled › Adds the build indicator container
page.goto: net::ERR_CONNECTION_REFUSED at http://localhost:42585/
=========================== logs ===========================
navigating to "http://localhost:42585/", waiting until "load"
============================================================
168 | this.activeTrace = encodeURIComponent(url)
169 | }
> 170 | await page.goto(url, { waitUntil: 'load' })
| ^
171 | }
172 |
173 | back(): BrowserInterface {
at Playwright.loadPage (lib/browsers/playwright.ts:170:16)
at webdriver (lib/next-webdriver.ts:110:3)
at Object.<anonymous> (integration/build-indicator/test/index.test.js:67:23)
● Build Activity Indicator › Enabled › Shows the build indicator when a page is built during navigation
page.goto: net::ERR_CONNECTION_REFUSED at http://localhost:42585/
=========================== logs ===========================
navigating to "http://localhost:42585/", waiting until "load"
============================================================
168 | this.activeTrace = encodeURIComponent(url)
169 | }
> 170 | await page.goto(url, { waitUntil: 'load' })
| ^
171 | }
172 |
173 | back(): BrowserInterface {
at Playwright.loadPage (lib/browsers/playwright.ts:170:16)
at webdriver (lib/next-webdriver.ts:110:3)
at Object.<anonymous> (integration/build-indicator/test/index.test.js:74:23)
● Build Activity Indicator › Enabled › Shows build indicator when page is built from modifying
page.goto: net::ERR_CONNECTION_REFUSED at http://localhost:42585/b
=========================== logs ===========================
navigating to "http://localhost:42585/b", waiting until "load"
============================================================
168 | this.activeTrace = encodeURIComponent(url)
169 | }
> 170 | await page.goto(url, { waitUntil: 'load' })
| ^
171 | }
172 |
173 | back(): BrowserInterface {
at Playwright.loadPage (lib/browsers/playwright.ts:170:16)
at webdriver (lib/next-webdriver.ts:110:3)
at Object.<anonymous> (integration/build-indicator/test/index.test.js:84:23)
● Build Activity Indicator › Disabled with next.config.js › Does not add the build indicator container
page.goto: net::ERR_CONNECTION_REFUSED at http://localhost:34495/
=========================== logs ===========================
navigating to "http://localhost:34495/", waiting until "load"
============================================================
168 | this.activeTrace = encodeURIComponent(url)
169 | }
> 170 | await page.goto(url, { waitUntil: 'load' })
| ^
171 | }
172 |
173 | back(): BrowserInterface {
at Playwright.loadPage (lib/browsers/playwright.ts:170:16)
at webdriver (lib/next-webdriver.ts:110:3)
at Object.<anonymous> (integration/build-indicator/test/index.test.js:116:23)
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/build-indicator/test/index.test.js:64:27
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/build-indicator/test/index.test.js:111:20
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/integration/app-document-style-fragment/test/index.test.js
- Custom Document Fragment Styles > correctly adds styles from fragment styles key
Expand output
● Custom Document Fragment Styles › correctly adds styles from fragment styles key
command failed with code 1
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/2)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (2/2)
> Build error occurred
Error: Export encountered errors on following paths:
/_error: /404
/_error: /500
at ../packages/next/dist/export/index.js:408:19
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading '__app')
460 |
461 | export async function stopApp(server) {
> 462 | if (server.__app) {
| ^
463 | await server.__app.close()
464 | }
465 | await promiseCall(server, 'close')
at stopApp (lib/next-test-utils.js:462:14)
at integration/app-document-style-fragment/test/index.test.js:30:25
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/integration/export-dynamic-pages/test/index.test.js
- Export Dyanmic Pages > should of exported with correct asPath
- Export Dyanmic Pages > should hydrate with correct asPath
Expand output
● Export Dyanmic Pages › should of exported with correct asPath
command failed with code 1
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/2)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (2/2)
> Build error occurred
Error: Export encountered errors on following paths:
/_error: /404
/_error: /500
at ../packages/next/dist/export/index.js:408:19
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
● Export Dyanmic Pages › should hydrate with correct asPath
command failed with code 1
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/2)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (2/2)
> Build error occurred
Error: Export encountered errors on following paths:
/_error: /404
/_error: /500
at ../packages/next/dist/export/index.js:408:19
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading '__app')
460 |
461 | export async function stopApp(server) {
> 462 | if (server.__app) {
| ^
463 | await server.__app.close()
464 | }
465 | await promiseCall(server, 'close')
at stopApp (lib/next-test-utils.js:462:14)
at integration/export-dynamic-pages/test/index.test.js:29:18
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/integration/api-catch-all/test/index.test.js
- API routes > Server support > should return data when catch-all
- API routes > Server support > should return redirect when catch-all with index and trailing slash
- API routes > Server support > should return data when catch-all with index and trailing slash
- API routes > Server support > should return data when catch-all with index and no trailing slash
- API routes > dev support > should return data when catch-all
- API routes > dev support > should return redirect when catch-all with index and trailing slash
- API routes > dev support > should return data when catch-all with index and trailing slash
- API routes > dev support > should return data when catch-all with index and no trailing slash
Expand output
● API routes › dev support › should return data when catch-all
FetchError: request to http://localhost:44827/api/users/1 failed, reason: connect ECONNREFUSED 127.0.0.1:44827
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● API routes › dev support › should return redirect when catch-all with index and trailing slash
FetchError: request to http://localhost:44827/api/users/ failed, reason: connect ECONNREFUSED 127.0.0.1:44827
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● API routes › dev support › should return data when catch-all with index and trailing slash
FetchError: request to http://localhost:44827/api/users/ failed, reason: connect ECONNREFUSED 127.0.0.1:44827
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● API routes › dev support › should return data when catch-all with index and no trailing slash
FetchError: request to http://localhost:44827/api/users failed, reason: connect ECONNREFUSED 127.0.0.1:44827
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● API routes › Server support › should return data when catch-all
command failed with code 1
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/2)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (2/2)
> Build error occurred
Error: Export encountered errors on following paths:
/_error: /404
/_error: /500
at ../packages/next/dist/export/index.js:408:19
at runMicrotasks (<anonymous>)
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
● API routes › Server support › should return redirect when catch-all with index and trailing slash
command failed with code 1
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/2)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (2/2)
> Build error occurred
Error: Export encountered errors on following paths:
/_error: /404
/_error: /500
at ../packages/next/dist/export/index.js:408:19
at runMicrotasks (<anonymous>)
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
● API routes › Server support › should return data when catch-all with index and trailing slash
command failed with code 1
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/2)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (2/2)
> Build error occurred
Error: Export encountered errors on following paths:
/_error: /404
/_error: /500
at ../packages/next/dist/export/index.js:408:19
at runMicrotasks (<anonymous>)
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
● API routes › Server support › should return data when catch-all with index and no trailing slash
command failed with code 1
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/2)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (2/2)
> Build error occurred
Error: Export encountered errors on following paths:
/_error: /404
/_error: /500
at ../packages/next/dist/export/index.js:408:19
at runMicrotasks (<anonymous>)
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/api-catch-all/test/index.test.js:58:27
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/api-catch-all/test/index.test.js:69:27
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/integration/auto-export-query-error/test/index.test.js
- Auto Export > server mode > should show warning for query provided for auto exported page correctly
Expand output
● Auto Export › server mode › should show warning for query provided for auto exported page correctly
command failed with code 1
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/5)
Error occurred prerendering page "/amp". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (1/5)
Error occurred prerendering page "/hello". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (2/5)
Error occurred prerendering page "/ssg". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (3/5)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (5/5)
> Build error occurred
Error: Export encountered errors on following paths:
/_error: /404
/_error: /500
/amp
/hello
/ssg
at ../packages/next/dist/export/index.js:408:19
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/integration/config-devtool-dev/test/index.test.js
- devtool set in development mode in next config > should warn and revert when a devtool is set in development mode
Expand output
● devtool set in development mode in next config › should warn and revert when a devtool is set in development mode
page.goto: net::ERR_CONNECTION_REFUSED at http://localhost:39511/
=========================== logs ===========================
navigating to "http://localhost:39511/", waiting until "load"
============================================================
168 | this.activeTrace = encodeURIComponent(url)
169 | }
> 170 | await page.goto(url, { waitUntil: 'load' })
| ^
171 | }
172 |
173 | back(): BrowserInterface {
at Playwright.loadPage (lib/browsers/playwright.ts:170:16)
at webdriver (lib/next-webdriver.ts:110:3)
at Object.<anonymous> (integration/config-devtool-dev/test/index.test.js:34:21)
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/e2e/app-dir/app-edge-global.test.ts
- app-dir global edge configuration > should handle edge only routes
Expand output
● app-dir global edge configuration › should handle edge only routes
FetchError: request to http://localhost:38249/app-edge failed, reason: socket hang up
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/e2e/browserslist/legacybrowsers-true.test.ts
- legacyBrowsers: true > should apply legacyBrowsers: true
Expand output
● legacyBrowsers: true › should apply legacyBrowsers: true
FetchError: request to http://localhost:35429/ failed, reason: socket hang up
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/integration/404-page-ssg/test/index.test.js
- 404 Page Support SSG > dev mode > should respond to 404 correctly
- 404 Page Support SSG > dev mode > should render error correctly
- 404 Page Support SSG > dev mode > should not show an error in the logs for 404 SSG
- 404 Page Support SSG > dev mode > should render index page normal
- 404 Page Support SSG > server mode > should build successfully
- 404 Page Support SSG > server mode > should respond to 404 correctly
- 404 Page Support SSG > server mode > should render error correctly
- 404 Page Support SSG > server mode > should not show an error in the logs for 404 SSG
- 404 Page Support SSG > server mode > should render index page normal
- 404 Page Support SSG > server mode > should not revalidate custom 404 page
- 404 Page Support SSG > server mode > should have 404 page in prerender-manifest
Expand output
● 404 Page Support SSG › server mode › should build successfully
expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
90 | })
91 |
> 92 | expect(code).toBe(0)
| ^
93 | expect(buildStderr).not.toMatch(gip404Err)
94 | expect(buildStdout).not.toMatch(gip404Err)
95 |
at Object.<anonymous> (integration/404-page-ssg/test/index.test.js:92:20)
● 404 Page Support SSG › server mode › should respond to 404 correctly
TypeError: Invalid URL
139 | typeof query === 'string' ? query : query ? `?${qs.stringify(query)}` : ''
140 | }`
> 141 | return fetch(getFullUrl(appPort, url), {
| ^
142 | // in node.js v17 fetch favors IPv6 but Next.js is
143 | // listening on IPv4 by default so force IPv4 DNS resolving
144 | agent: (parsedUrl) => {
at parseURL (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1164:12)
at new Request (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1210:17)
at ../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1439:19
at fetch (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1437:9)
at fetchViaHTTP (lib/next-test-utils.js:141:15)
at Object.<anonymous> (integration/404-page-ssg/test/index.test.js:27:35)
● 404 Page Support SSG › server mode › should render error correctly
TypeError: Invalid URL
139 | typeof query === 'string' ? query : query ? `?${qs.stringify(query)}` : ''
140 | }`
> 141 | return fetch(getFullUrl(appPort, url), {
| ^
142 | // in node.js v17 fetch favors IPv6 but Next.js is
143 | // listening on IPv4 by default so force IPv4 DNS resolving
144 | agent: (parsedUrl) => {
at parseURL (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1164:12)
at new Request (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1210:17)
at ../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1439:19
at fetch (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1437:9)
at fetchViaHTTP (lib/next-test-utils.js:141:15)
at renderViaHTTP (lib/next-test-utils.js:127:10)
● 404 Page Support SSG › server mode › should not show an error in the logs for 404 SSG
TypeError: Invalid URL
139 | typeof query === 'string' ? query : query ? `?${qs.stringify(query)}` : ''
140 | }`
> 141 | return fetch(getFullUrl(appPort, url), {
| ^
142 | // in node.js v17 fetch favors IPv6 but Next.js is
143 | // listening on IPv4 by default so force IPv4 DNS resolving
144 | agent: (parsedUrl) => {
at parseURL (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1164:12)
at new Request (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1210:17)
at ../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1439:19
at fetch (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1437:9)
at fetchViaHTTP (lib/next-test-utils.js:141:15)
at renderViaHTTP (lib/next-test-utils.js:127:10)
● 404 Page Support SSG › server mode › should render index page normal
TypeError: Invalid URL
139 | typeof query === 'string' ? query : query ? `?${qs.stringify(query)}` : ''
140 | }`
> 141 | return fetch(getFullUrl(appPort, url), {
| ^
142 | // in node.js v17 fetch favors IPv6 but Next.js is
143 | // listening on IPv4 by default so force IPv4 DNS resolving
144 | agent: (parsedUrl) => {
at parseURL (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1164:12)
at new Request (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1210:17)
at ../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1439:19
at fetch (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1437:9)
at fetchViaHTTP (lib/next-test-utils.js:141:15)
at renderViaHTTP (lib/next-test-utils.js:127:10)
● 404 Page Support SSG › server mode › should not revalidate custom 404 page
TypeError: Invalid URL
139 | typeof query === 'string' ? query : query ? `?${qs.stringify(query)}` : ''
140 | }`
> 141 | return fetch(getFullUrl(appPort, url), {
| ^
142 | // in node.js v17 fetch favors IPv6 but Next.js is
143 | // listening on IPv4 by default so force IPv4 DNS resolving
144 | agent: (parsedUrl) => {
at parseURL (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1164:12)
at new Request (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1210:17)
at ../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1439:19
at fetch (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1437:9)
at fetchViaHTTP (lib/next-test-utils.js:141:15)
at renderViaHTTP (lib/next-test-utils.js:127:10)
● 404 Page Support SSG › server mode › should have 404 page in prerender-manifest
ENOENT: no such file or directory, open '/home/runner/work/next.js/next.js/test/integration/404-page-ssg/.next/prerender-manifest.json'
● 404 Page Support SSG › dev mode › should respond to 404 correctly
FetchError: request to http://localhost:34701/404 failed, reason: connect ECONNREFUSED 127.0.0.1:34701
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● 404 Page Support SSG › dev mode › should render error correctly
FetchError: request to http://localhost:34701/err failed, reason: connect ECONNREFUSED 127.0.0.1:34701
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● 404 Page Support SSG › dev mode › should not show an error in the logs for 404 SSG
FetchError: request to http://localhost:34701/non-existent failed, reason: connect ECONNREFUSED 127.0.0.1:34701
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● 404 Page Support SSG › dev mode › should render index page normal
FetchError: request to http://localhost:34701/ failed, reason: connect ECONNREFUSED 127.0.0.1:34701
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/404-page-ssg/test/index.test.js:80:27
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/404-page-ssg/test/index.test.js:128:27
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/integration/404-page/test/index.test.js
- 404 Page Support > should not cache for custom 404 page with gssp and revalidate disabled
- 404 Page Support > should not cache for custom 404 page with gssp and revalidate enabled
- 404 Page Support > should not cache for custom 404 page without gssp
- 404 Page Support > falls back to _error correctly without pages/404
- 404 Page Support > shows error with getInitialProps in pages/404 build
- 404 Page Support > shows error with getInitialProps in pages/404 dev
- 404 Page Support > does not show error with getStaticProps in pages/404 build
- 404 Page Support > does not show error with getStaticProps in pages/404 dev
- 404 Page Support > shows error with getServerSideProps in pages/404 build
- 404 Page Support > shows error with getServerSideProps in pages/404 dev
- 404 Page Support > dev mode > should use pages/404
- 404 Page Support > dev mode > should set correct status code with pages/404
- 404 Page Support > dev mode > should use pages/404 for .d.ts file
- 404 Page Support > dev mode > should not error when visited directly
- 404 Page Support > dev mode > should render _error for a 500 error still
- 404 Page Support > server mode > should use pages/404
- 404 Page Support > server mode > should set correct status code with pages/404
- 404 Page Support > server mode > should use pages/404 for .d.ts file
- 404 Page Support > server mode > should not error when visited directly
- 404 Page Support > server mode > should render _error for a 500 error still
- 404 Page Support > server mode > should output 404.html during build
- 404 Page Support > server mode > should add /404 to pages-manifest correctly
Expand output
● 404 Page Support › dev mode › should use pages/404
FetchError: request to http://localhost:33601/abc failed, reason: connect ECONNREFUSED 127.0.0.1:33601
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● 404 Page Support › dev mode › should set correct status code with pages/404
FetchError: request to http://localhost:33601/abc failed, reason: connect ECONNREFUSED 127.0.0.1:33601
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● 404 Page Support › dev mode › should use pages/404 for .d.ts file
FetchError: request to http://localhost:33601/invalidExtension failed, reason: connect ECONNREFUSED 127.0.0.1:33601
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● 404 Page Support › dev mode › should not error when visited directly
FetchError: request to http://localhost:33601/404 failed, reason: connect ECONNREFUSED 127.0.0.1:33601
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● 404 Page Support › dev mode › should render _error for a 500 error still
FetchError: request to http://localhost:33601/err failed, reason: connect ECONNREFUSED 127.0.0.1:33601
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● 404 Page Support › server mode › should use pages/404
command failed with code 1
warn - Detected next.config.js, no exported configuration found. https://nextjs.org/docs/messages/empty-configuration
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/3)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (3/3)
> Build error occurred
Error: Export encountered errors on following paths:
/
/404
/_error: /500
at ../packages/next/dist/export/index.js:408:19
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
● 404 Page Support › server mode › should set correct status code with pages/404
command failed with code 1
warn - Detected next.config.js, no exported configuration found. https://nextjs.org/docs/messages/empty-configuration
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/3)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (3/3)
> Build error occurred
Error: Export encountered errors on following paths:
/
/404
/_error: /500
at ../packages/next/dist/export/index.js:408:19
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
● 404 Page Support › server mode › should use pages/404 for .d.ts file
command failed with code 1
warn - Detected next.config.js, no exported configuration found. https://nextjs.org/docs/messages/empty-configuration
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/3)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (3/3)
> Build error occurred
Error: Export encountered errors on following paths:
/
/404
/_error: /500
at ../packages/next/dist/export/index.js:408:19
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
● 404 Page Support › server mode › should not error when visited directly
command failed with code 1
warn - Detected next.config.js, no exported configuration found. https://nextjs.org/docs/messages/empty-configuration
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/3)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (3/3)
> Build error occurred
Error: Export encountered errors on following paths:
/
/404
/_error: /500
at ../packages/next/dist/export/index.js:408:19
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
● 404 Page Support › server mode › should render _error for a 500 error still
command failed with code 1
warn - Detected next.config.js, no exported configuration found. https://nextjs.org/docs/messages/empty-configuration
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/3)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (3/3)
> Build error occurred
Error: Export encountered errors on following paths:
/
/404
/_error: /500
at ../packages/next/dist/export/index.js:408:19
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
● 404 Page Support › server mode › should output 404.html during build
command failed with code 1
warn - Detected next.config.js, no exported configuration found. https://nextjs.org/docs/messages/empty-configuration
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/3)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (3/3)
> Build error occurred
Error: Export encountered errors on following paths:
/
/404
/_error: /500
at ../packages/next/dist/export/index.js:408:19
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
● 404 Page Support › server mode › should add /404 to pages-manifest correctly
command failed with code 1
warn - Detected next.config.js, no exported configuration found. https://nextjs.org/docs/messages/empty-configuration
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/3)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (3/3)
> Build error occurred
Error: Export encountered errors on following paths:
/
/404
/_error: /500
at ../packages/next/dist/export/index.js:408:19
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
● 404 Page Support › should not cache for custom 404 page with gssp and revalidate disabled
command failed with code 1
warn - Detected next.config.js, no exported configuration found. https://nextjs.org/docs/messages/empty-configuration
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/3)
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (3/3)
> Build error occurred
Error: Export encountered errors on following paths:
/
/404
/_error: /500
at ../packages/next/dist/export/index.js:408:19
at runMicrotasks (<anonymous>)
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
● 404 Page Support › should not cache for custom 404 page with gssp and revalidate enabled
dest already exists.
at ../node_modules/.pnpm/[email protected]/node_modules/fs-extra/lib/move/move.js:41:31
at ../node_modules/.pnpm/[email protected]/node_modules/universalify/index.js:21:54
● 404 Page Support › should not cache for custom 404 page without gssp
command failed with code 1
warn - Detected next.config.js, no exported configuration found. https://nextjs.org/docs/messages/empty-configuration
info - Linting and checking validity of types...
warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
info - Creating an optimized production build...
info - Using locally built binary of @next/swc
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/3)
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
21 | const hookResolved = matchModule(request)
22 | if (hookResolved) request = hookResolved
> 23 | return resolveFilename.call(mod, request, parent, isMain, options)
| ^
24 | }
25 |
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
Error occurred prerendering page "/500". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Cannot find module './dynamic-error-boundary'
Require stack:
- /home/runner/work/next.js/next.js/packages/next/dist/shared/lib/loadable.js
- /home/runner/work/next.js/next.js/packages/next/dist/server/render.js
- /home/runner/work/next.js/next.js/packages/next/dist/export/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/build/worker.js
- /home/runner/work/next.js/next.js/packages/next/dist/compiled/jest-worker/processChild.js
at Function.mod._resolveFilename (lib/mocks-require-hook.js:23:26)
at Function.mod._resolveFilename (../packages/next/dist/build/webpack/require-hook.js:23:32)
at Object.<anonymous> (../packages/next/dist/shared/lib/loadable.js:10:54)
info - Generating static pages (3/3)
> Build error occurred
Error: Export encountered errors on following paths:
/
/404
/_error: /500
at ../packages/next/dist/export/index.js:408:19
at runMicrotasks (<anonymous>)
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1342:21
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at ../async /home/runner/work/next.js/next.js/packages/next/dist/build/index.js:1202:17
at async Span.traceAsyncFn (../packages/next/dist/trace/trace.js:79:20)
at async Object.build [as default] (../packages/next/dist/build/index.js:65:29)
at ChildProcess.<anonymous> (lib/next-test-utils.js:239:11)
● 404 Page Support › falls back to _error correctly without pages/404
dest already exists.
at ../node_modules/.pnpm/[email protected]/node_modules/fs-extra/lib/move/move.js:41:31
at ../node_modules/.pnpm/[email protected]/node_modules/universalify/index.js:21:54
● 404 Page Support › shows error with getInitialProps in pages/404 build
dest already exists.
at ../node_modules/.pnpm/[email protected]/node_modules/fs-extra/lib/move/move.js:41:31
at ../node_modules/.pnpm/[email protected]/node_modules/universalify/index.js:21:54
● 404 Page Support › shows error with getInitialProps in pages/404 dev
dest already exists.
at ../node_modules/.pnpm/[email protected]/node_modules/fs-extra/lib/move/move.js:41:31
at ../node_modules/.pnpm/[email protected]/node_modules/universalify/index.js:21:54
● 404 Page Support › does not show error with getStaticProps in pages/404 build
dest already exists.
at ../node_modules/.pnpm/[email protected]/node_modules/fs-extra/lib/move/move.js:41:31
at ../node_modules/.pnpm/[email protected]/node_modules/universalify/index.js:21:54
● 404 Page Support › does not show error with getStaticProps in pages/404 dev
dest already exists.
at ../node_modules/.pnpm/[email protected]/node_modules/fs-extra/lib/move/move.js:41:31
at ../node_modules/.pnpm/[email protected]/node_modules/universalify/index.js:21:54
● 404 Page Support › shows error with getServerSideProps in pages/404 build
dest already exists.
at ../node_modules/.pnpm/[email protected]/node_modules/fs-extra/lib/move/move.js:41:31
at ../node_modules/.pnpm/[email protected]/node_modules/universalify/index.js:21:54
● 404 Page Support › shows error with getServerSideProps in pages/404 dev
dest already exists.
at ../node_modules/.pnpm/[email protected]/node_modules/fs-extra/lib/move/move.js:41:31
at ../node_modules/.pnpm/[email protected]/node_modules/universalify/index.js:21:54
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/404-page/test/index.test.js:77:27
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/404-page/test/index.test.js:88:27
Read more about building and testing Next.js in contributing.md.
pnpm testheadless test/integration/404-page-custom-error/test/index.test.js
- Default 404 Page with custom _error > dev mode > should respond to 404 correctly
- Default 404 Page with custom _error > dev mode > should render error correctly
- Default 404 Page with custom _error > dev mode > should render index page normal
- Default 404 Page with custom _error > server mode > should build successfully
- Default 404 Page with custom _error > server mode > should respond to 404 correctly
- Default 404 Page with custom _error > server mode > should render error correctly
- Default 404 Page with custom _error > server mode > should render index page normal
- Default 404 Page with custom _error > server mode > should have output 404.html
Expand output
● Default 404 Page with custom _error › server mode › should build successfully
expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
61 | })
62 |
> 63 | expect(code).toBe(0)
| ^
64 |
65 | appPort = await findPort()
66 |
at Object.<anonymous> (integration/404-page-custom-error/test/index.test.js:63:20)
● Default 404 Page with custom _error › server mode › should respond to 404 correctly
TypeError: Invalid URL
139 | typeof query === 'string' ? query : query ? `?${qs.stringify(query)}` : ''
140 | }`
> 141 | return fetch(getFullUrl(appPort, url), {
| ^
142 | // in node.js v17 fetch favors IPv6 but Next.js is
143 | // listening on IPv4 by default so force IPv4 DNS resolving
144 | agent: (parsedUrl) => {
at parseURL (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1164:12)
at new Request (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1210:17)
at ../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1439:19
at fetch (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1437:9)
at fetchViaHTTP (lib/next-test-utils.js:141:15)
at Object.<anonymous> (integration/404-page-custom-error/test/index.test.js:25:35)
● Default 404 Page with custom _error › server mode › should render error correctly
TypeError: Invalid URL
139 | typeof query === 'string' ? query : query ? `?${qs.stringify(query)}` : ''
140 | }`
> 141 | return fetch(getFullUrl(appPort, url), {
| ^
142 | // in node.js v17 fetch favors IPv6 but Next.js is
143 | // listening on IPv4 by default so force IPv4 DNS resolving
144 | agent: (parsedUrl) => {
at parseURL (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1164:12)
at new Request (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1210:17)
at ../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1439:19
at fetch (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1437:9)
at fetchViaHTTP (lib/next-test-utils.js:141:15)
at renderViaHTTP (lib/next-test-utils.js:127:10)
● Default 404 Page with custom _error › server mode › should render index page normal
TypeError: Invalid URL
139 | typeof query === 'string' ? query : query ? `?${qs.stringify(query)}` : ''
140 | }`
> 141 | return fetch(getFullUrl(appPort, url), {
| ^
142 | // in node.js v17 fetch favors IPv6 but Next.js is
143 | // listening on IPv4 by default so force IPv4 DNS resolving
144 | agent: (parsedUrl) => {
at parseURL (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1164:12)
at new Request (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1210:17)
at ../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1439:19
at fetch (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1437:9)
at fetchViaHTTP (lib/next-test-utils.js:141:15)
at renderViaHTTP (lib/next-test-utils.js:127:10)
● Default 404 Page with custom _error › server mode › should have output 404.html
No file for page /404
789 | const pageFile = pagesManifest[page]
790 | if (!pageFile) {
> 791 | throw new Error(`No file for page ${page}`)
| ^
792 | }
793 |
794 | return pageFile
at getPageFileFromPagesManifest (lib/next-test-utils.js:791:11)
at Object.<anonymous> (integration/404-page-custom-error/test/index.test.js:47:48)
● Default 404 Page with custom _error › dev mode › should respond to 404 correctly
FetchError: request to http://localhost:35991/404 failed, reason: connect ECONNREFUSED 127.0.0.1:35991
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Default 404 Page with custom _error › dev mode › should render error correctly
FetchError: request to http://localhost:35991/err failed, reason: connect ECONNREFUSED 127.0.0.1:35991
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Default 404 Page with custom _error › dev mode › should render index page normal
FetchError: request to http://localhost:35991/ failed, reason: connect ECONNREFUSED 127.0.0.1:35991
at ClientRequest.<anonymous> (../node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:1491:11)
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/404-page-custom-error/test/index.test.js:55:27
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'pid')
439 | // Kill a launched app
440 | export async function killApp(instance) {
> 441 | await killProcess(instance.pid)
| ^
442 | }
443 |
444 | export async function startApp(app) {
at killApp (lib/next-test-utils.js:441:30)
at integration/404-page-custom-error/test/index.test.js:78:27
Read more about building and testing Next.js in contributing.md.
Stats from current PR
Default Build (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary | huozhi/next.js suspensey-dynamic | Change | |
---|---|---|---|
buildDuration | 38.2s | 36.8s | -1.3s |
buildDurationCached | 9.6s | 9.9s | ⚠️ +353ms |
nodeModulesSize | 94.8 MB | 94.8 MB | ⚠️ +1.5 kB |
nextStartRea..uration (ms) | 281ms | 277ms | -4ms |
Client Bundles (main, webpack) Overall increase ⚠️
vercel/next.js canary | huozhi/next.js suspensey-dynamic | Change | |
---|---|---|---|
246.HASH.js gzip | 181 B | 180 B | -1 B |
437-HASH.js gzip | 64.3 kB | 64.4 kB | ⚠️ +97 B |
main-app-HASH.js gzip | 200 B | 199 B | -1 B |
main-HASH.js gzip | 78.8 kB | 78.9 kB | ⚠️ +120 B |
webpack-HASH.js gzip | 1.7 kB | 1.7 kB | -3 B |
Overall change | 145 kB | 145 kB | ⚠️ +212 B |
Legacy Client Bundles (polyfills)
vercel/next.js canary | huozhi/next.js suspensey-dynamic | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall decrease ✓
vercel/next.js canary | huozhi/next.js suspensey-dynamic | Change | |
---|---|---|---|
_app-HASH.js gzip | 192 B | 191 B | -1 B |
_error-HASH.js gzip | 179 B | 179 B | ✓ |
amp-HASH.js gzip | 482 B | 483 B | ⚠️ +1 B |
css-HASH.js gzip | 904 B | 904 B | ✓ |
dynamic-HASH.js gzip | 2.31 kB | 2.29 kB | -18 B |
edge-ssr-HASH.js gzip | 259 B | 259 B | ✓ |
head-HASH.js gzip | 830 B | 827 B | -3 B |
hooks-HASH.js gzip | 851 B | 850 B | -1 B |
image-HASH.js gzip | 4.25 kB | 4.25 kB | -4 B |
index-HASH.js gzip | 253 B | 252 B | -1 B |
link-HASH.js gzip | 2.69 kB | 2.68 kB | -3 B |
routerDirect..HASH.js gzip | 782 B | 781 B | -1 B |
script-HASH.js gzip | 860 B | 855 B | -5 B |
withRouter-HASH.js gzip | 782 B | 779 B | -3 B |
85e02e95b279..7e3.css gzip | 107 B | 107 B | ✓ |
Overall change | 15.7 kB | 15.7 kB | -39 B |
Client Build Manifests
vercel/next.js canary | huozhi/next.js suspensey-dynamic | Change | |
---|---|---|---|
_buildManifest.js gzip | 483 B | 483 B | ✓ |
Overall change | 483 B | 483 B | ✓ |
Rendered Page Sizes Overall increase ⚠️
vercel/next.js canary | huozhi/next.js suspensey-dynamic | Change | |
---|---|---|---|
index.html gzip | 490 B | 491 B | ⚠️ +1 B |
link.html gzip | 505 B | 506 B | ⚠️ +1 B |
withRouter.html gzip | 485 B | 485 B | ✓ |
Overall change | 1.48 kB | 1.48 kB | ⚠️ +2 B |
Edge SSR bundle Size Overall decrease ✓
vercel/next.js canary | huozhi/next.js suspensey-dynamic | Change | |
---|---|---|---|
edge-ssr.js gzip | 110 kB | 110 kB | -91 B |
page.js gzip | 97.9 kB | 97.9 kB | ⚠️ +16 B |
Overall change | 208 kB | 208 kB | -75 B |
Middleware size Overall decrease ✓
vercel/next.js canary | huozhi/next.js suspensey-dynamic | Change | |
---|---|---|---|
middleware-b..fest.js gzip | 586 B | 585 B | -1 B |
middleware-r..fest.js gzip | 145 B | 144 B | -1 B |
middleware.js gzip | 27.2 kB | 27.2 kB | -6 B |
edge-runtime..pack.js gzip | 1.83 kB | 1.83 kB | ✓ |
Overall change | 29.7 kB | 29.7 kB | -8 B |
Diffs
Diff for page.js
Diff too large to display
Diff for middleware-b..-manifest.js
@@ -7,81 +7,81 @@ self.__BUILD_MANIFEST = {
"static/BUILD_ID/_ssgManifest.js"
],
rootMainFiles: [
- "static/chunks/webpack-778ee737b42dbd09.js",
- "static/chunks/437-fcc1073958b4ec97.js",
- "static/chunks/main-app-a3ea97a552128573.js"
+ "static/chunks/webpack-18ba22fbfdc26df1.js",
+ "static/chunks/303-fe79e5b21c62cdff.js",
+ "static/chunks/main-app-8a67d1efdca28dd0.js"
],
pages: {
"/": [
- "static/chunks/webpack-778ee737b42dbd09.js",
- "static/chunks/main-d4f615235cf36703.js",
- "static/chunks/pages/index-72f4ed6964652f6a.js"
+ "static/chunks/webpack-18ba22fbfdc26df1.js",
+ "static/chunks/main-2a66778728903fb5.js",
+ "static/chunks/pages/index-d30a580d3c17f4d9.js"
],
"/_app": [
- "static/chunks/webpack-778ee737b42dbd09.js",
- "static/chunks/main-d4f615235cf36703.js",
- "static/chunks/pages/_app-02fdba2e11c62c3b.js"
+ "static/chunks/webpack-18ba22fbfdc26df1.js",
+ "static/chunks/main-2a66778728903fb5.js",
+ "static/chunks/pages/_app-3a8e7c7946c2bd53.js"
],
"/_error": [
- "static/chunks/webpack-778ee737b42dbd09.js",
- "static/chunks/main-d4f615235cf36703.js",
- "static/chunks/pages/_error-c6d6c7c386122218.js"
+ "static/chunks/webpack-18ba22fbfdc26df1.js",
+ "static/chunks/main-2a66778728903fb5.js",
+ "static/chunks/pages/_error-a9ef5f835b494eed.js"
],
"/amp": [
- "static/chunks/webpack-778ee737b42dbd09.js",
- "static/chunks/main-d4f615235cf36703.js",
- "static/chunks/pages/amp-b62e7c28809c13e0.js"
+ "static/chunks/webpack-18ba22fbfdc26df1.js",
+ "static/chunks/main-2a66778728903fb5.js",
+ "static/chunks/pages/amp-0caeab3cd7ed5bbd.js"
],
"/css": [
- "static/chunks/webpack-778ee737b42dbd09.js",
- "static/chunks/main-d4f615235cf36703.js",
+ "static/chunks/webpack-18ba22fbfdc26df1.js",
+ "static/chunks/main-2a66778728903fb5.js",
"static/css/94fdbc56eafa2039.css",
- "static/chunks/pages/css-9ff2b163b1f26520.js"
+ "static/chunks/pages/css-a9db2d7f8fc4c5df.js"
],
"/dynamic": [
- "static/chunks/webpack-778ee737b42dbd09.js",
- "static/chunks/main-d4f615235cf36703.js",
- "static/chunks/pages/dynamic-4591ab3efbed1651.js"
+ "static/chunks/webpack-18ba22fbfdc26df1.js",
+ "static/chunks/main-2a66778728903fb5.js",
+ "static/chunks/pages/dynamic-22676b8e3bef59c7.js"
],
"/edge-ssr": [
- "static/chunks/webpack-778ee737b42dbd09.js",
- "static/chunks/main-d4f615235cf36703.js",
- "static/chunks/pages/edge-ssr-a57e88de1ff426bd.js"
+ "static/chunks/webpack-18ba22fbfdc26df1.js",
+ "static/chunks/main-2a66778728903fb5.js",
+ "static/chunks/pages/edge-ssr-5d2cdb3b4a9fabd5.js"
],
"/head": [
- "static/chunks/webpack-778ee737b42dbd09.js",
- "static/chunks/main-d4f615235cf36703.js",
- "static/chunks/pages/head-b5894c626904a778.js"
+ "static/chunks/webpack-18ba22fbfdc26df1.js",
+ "static/chunks/main-2a66778728903fb5.js",
+ "static/chunks/pages/head-248ef55290815b7c.js"
],
"/hooks": [
- "static/chunks/webpack-778ee737b42dbd09.js",
- "static/chunks/main-d4f615235cf36703.js",
- "static/chunks/pages/hooks-874b5779f127e436.js"
+ "static/chunks/webpack-18ba22fbfdc26df1.js",
+ "static/chunks/main-2a66778728903fb5.js",
+ "static/chunks/pages/hooks-624e3ee1c369c918.js"
],
"/image": [
- "static/chunks/webpack-778ee737b42dbd09.js",
- "static/chunks/main-d4f615235cf36703.js",
- "static/chunks/pages/image-854b6400b5b29f63.js"
+ "static/chunks/webpack-18ba22fbfdc26df1.js",
+ "static/chunks/main-2a66778728903fb5.js",
+ "static/chunks/pages/image-96d840698946c2ee.js"
],
"/link": [
- "static/chunks/webpack-778ee737b42dbd09.js",
- "static/chunks/main-d4f615235cf36703.js",
- "static/chunks/pages/link-64f5c14f89f65607.js"
+ "static/chunks/webpack-18ba22fbfdc26df1.js",
+ "static/chunks/main-2a66778728903fb5.js",
+ "static/chunks/pages/link-4acf1a45f96a1672.js"
],
"/routerDirect": [
- "static/chunks/webpack-778ee737b42dbd09.js",
- "static/chunks/main-d4f615235cf36703.js",
- "static/chunks/pages/routerDirect-0be908911bf83c00.js"
+ "static/chunks/webpack-18ba22fbfdc26df1.js",
+ "static/chunks/main-2a66778728903fb5.js",
+ "static/chunks/pages/routerDirect-5c05820a2fc8ec29.js"
],
"/script": [
- "static/chunks/webpack-778ee737b42dbd09.js",
- "static/chunks/main-d4f615235cf36703.js",
- "static/chunks/pages/script-fa22c9b29b4b53ec.js"
+ "static/chunks/webpack-18ba22fbfdc26df1.js",
+ "static/chunks/main-2a66778728903fb5.js",
+ "static/chunks/pages/script-20414a8a58346938.js"
],
"/withRouter": [
- "static/chunks/webpack-778ee737b42dbd09.js",
- "static/chunks/main-d4f615235cf36703.js",
- "static/chunks/pages/withRouter-9bdea6c06adf2771.js"
+ "static/chunks/webpack-18ba22fbfdc26df1.js",
+ "static/chunks/main-2a66778728903fb5.js",
+ "static/chunks/pages/withRouter-edc4e76b107d965e.js"
]
},
ampFirstPages: []
Diff for middleware-r..-manifest.js
@@ -1,6 +1,6 @@
self.__REACT_LOADABLE_MANIFEST = {
"dynamic.js -> ../components/hello": {
- id: 1246,
- files: ["static/chunks/246.a0afad3905ddc3ff.js"]
+ id: 753,
+ files: ["static/chunks/753.d8039168a3bcc2bf.js"]
}
};
Diff for middleware.js
@@ -1,7 +1,7 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[826],
{
- /***/ 1675: /***/ (
+ /***/ 5354: /***/ (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -14,7 +14,7 @@
__webpack_require__.d(__webpack_exports__, {
default: () =>
/* binding */ next_middleware_loaderabsolutePagePath_private_next_root_dir_2Fmiddleware_js_page_2Fmiddleware_rootDir_2Ftmp_2Fnext_stats_2Fstats_app_matchers_
- }); // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/error.js
+ }); // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/error.js
class PageSignatureError extends Error {
constructor({ page }) {
@@ -41,7 +41,7 @@
Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent
`);
}
- } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/utils.js
+ } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/utils.js
//# sourceMappingURL=error.js.map
function fromNodeHeaders(object) {
@@ -157,7 +157,7 @@
}
);
}
- } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/fetch-event.js
+ } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/fetch-event.js
//# sourceMappingURL=utils.js.map
const responseSymbol = Symbol("response");
@@ -203,7 +203,7 @@
page: this.sourcePage
});
}
- } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/i18n/detect-domain-locale.js
+ } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/i18n/detect-domain-locale.js
//# sourceMappingURL=fetch-event.js.map
function detectDomainLocale(domainItems, hostname, detectedLocale) {
@@ -232,7 +232,7 @@
}
}
return domainItem;
- } //# sourceMappingURL=detect-domain-locale.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/remove-trailing-slash.js
+ } //# sourceMappingURL=detect-domain-locale.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/remove-trailing-slash.js
/**
* Removes the trailing slash for a given route or page path. Preserves the
@@ -242,7 +242,7 @@
* - `/` -> `/`
*/ function removeTrailingSlash(route) {
return route.replace(/\/$/, "") || "/";
- } //# sourceMappingURL=remove-trailing-slash.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/parse-path.js
+ } //# sourceMappingURL=remove-trailing-slash.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/parse-path.js
/**
* Given a path this function will find the pathname, query and hash and return
@@ -270,7 +270,7 @@
query: "",
hash: ""
};
- } //# sourceMappingURL=parse-path.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/add-path-prefix.js
+ } //# sourceMappingURL=parse-path.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/add-path-prefix.js
/**
* Adds the provided prefix to the given path. It first ensures that the path
@@ -281,7 +281,7 @@
}
const { pathname, query, hash } = parsePath(path);
return `${prefix}${pathname}${query}${hash}`;
- } //# sourceMappingURL=add-path-prefix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/add-path-suffix.js
+ } //# sourceMappingURL=add-path-prefix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/add-path-suffix.js
/**
* Similarly to `addPathPrefix`, this function adds a suffix at the end on the
@@ -293,7 +293,7 @@
}
const { pathname, query, hash } = parsePath(path);
return `${pathname}${suffix}${query}${hash}`;
- } //# sourceMappingURL=add-path-suffix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/path-has-prefix.js
+ } //# sourceMappingURL=add-path-suffix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/path-has-prefix.js
/**
* Checks if a given path starts with a given prefix. It ensures it matches
@@ -307,7 +307,7 @@
}
const { pathname } = parsePath(path);
return pathname === prefix || pathname.startsWith(prefix + "/");
- } //# sourceMappingURL=path-has-prefix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/add-locale.js
+ } //# sourceMappingURL=path-has-prefix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/add-locale.js
/**
* For a given path and a locale, if the locale is given, it will prefix the
@@ -324,7 +324,7 @@
return addPathPrefix(path, `/${locale}`);
}
return path;
- } //# sourceMappingURL=add-locale.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/format-next-pathname-info.js
+ } //# sourceMappingURL=add-locale.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/format-next-pathname-info.js
function formatNextPathnameInfo(info) {
let pathname = addLocale(
@@ -348,7 +348,7 @@
? addPathSuffix(pathname, "/")
: pathname
: removeTrailingSlash(pathname);
- } //# sourceMappingURL=format-next-pathname-info.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/get-hostname.js
+ } //# sourceMappingURL=format-next-pathname-info.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/get-hostname.js
/**
* Takes an object with a hostname property (like a parsed URL) and some
@@ -363,7 +363,7 @@
parsed.hostname) == null
? void 0
: ref.split(":")[0].toLowerCase();
- } //# sourceMappingURL=get-hostname.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/i18n/normalize-locale-path.js
+ } //# sourceMappingURL=get-hostname.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/i18n/normalize-locale-path.js
/**
* For a pathname that may include a locale from a list of locales, it
@@ -393,7 +393,7 @@
pathname,
detectedLocale
};
- } //# sourceMappingURL=normalize-locale-path.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/remove-path-prefix.js
+ } //# sourceMappingURL=normalize-locale-path.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/remove-path-prefix.js
/**
* Given a path and a prefix it will remove the prefix when it exists in the
@@ -409,7 +409,7 @@
: `/${withoutPrefix}`;
}
return path;
- } //# sourceMappingURL=remove-path-prefix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/get-next-pathname-info.js
+ } //# sourceMappingURL=remove-path-prefix.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/get-next-pathname-info.js
function getNextPathnameInfo(pathname, options) {
var _nextConfig;
@@ -446,7 +446,7 @@
info.pathname;
}
return info;
- } //# sourceMappingURL=get-next-pathname-info.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/next-url.js
+ } //# sourceMappingURL=get-next-pathname-info.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/next-url.js
const REGEX_LOCALHOST_HOSTNAME = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|::1|localhost)/;
function parseURL(url, base) {
@@ -655,7 +655,7 @@
clone() {
return new NextURL(String(this), this[Internal].options);
}
- } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/cookies/serialize.js
+ } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/cookies/serialize.js
//# sourceMappingURL=next-url.js.map
const SAME_SITE = ["strict", "lax", "none"];
@@ -737,7 +737,7 @@
})
};
return compact(cookie);
- } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/cookies/request-cookies.js
+ } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/cookies/request-cookies.js
//# sourceMappingURL=serialize.js.map
/**
@@ -830,7 +830,7 @@
Object.fromEntries(this._parsed)
)}`;
}
- } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/cookies/response-cookies.js
+ } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/cookies/response-cookies.js
//# sourceMappingURL=request-cookies.js.map
function replace(bag, headers) {
@@ -925,7 +925,7 @@
Object.fromEntries(this._parsed)
)}`;
}
- } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/cookies/index.js // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/request.js
+ } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/cookies/index.js // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/request.js
//# sourceMappingURL=response-cookies.js.map
//# sourceMappingURL=index.js.map
@@ -1000,7 +1000,7 @@
get url() {
return this[INTERNALS].url.toString();
}
- } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/response.js
+ } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/spec-extension/response.js
//# sourceMappingURL=request.js.map
const response_INTERNALS = Symbol("internal response");
@@ -1100,7 +1100,7 @@
headers
});
}
- } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/relativize-url.js
+ } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/relativize-url.js
//# sourceMappingURL=response.js.map
/**
@@ -1114,7 +1114,7 @@
return `${relative.protocol}//${relative.host}` === origin
? relative.toString().replace(origin, "")
: relative.toString();
- } //# sourceMappingURL=relativize-url.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/internal-utils.js
+ } //# sourceMappingURL=relativize-url.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/internal-utils.js
const INTERNAL_QUERY_NAMES = [
"__nextFallback",
@@ -1138,7 +1138,7 @@
}
}
return searchParams;
- } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/app-paths.js
+ } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/shared/lib/router/utils/app-paths.js
//# sourceMappingURL=internal-utils.js.map
// remove (name) from pathname as it's not considered for routing
@@ -1162,7 +1162,7 @@
}
function normalizeRscPath(pathname, enabled) {
return enabled ? pathname.replace(/\.rsc($|\?)/, "") : pathname;
- } //# sourceMappingURL=app-paths.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/client/components/app-router-headers.js
+ } //# sourceMappingURL=app-paths.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/client/components/app-router-headers.js
const RSC = "RSC";
const NEXT_ROUTER_STATE_TREE = "Next-Router-State-Tree";
@@ -1173,7 +1173,7 @@
[RSC],
[NEXT_ROUTER_STATE_TREE],
[NEXT_ROUTER_PREFETCH]
- ]; //# sourceMappingURL=app-router-headers.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/adapter.js
+ ]; //# sourceMappingURL=app-router-headers.js.map // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/esm/server/web/adapter.js
class NextRequestHint extends NextRequest {
constructor(params) {
@@ -1396,12 +1396,12 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
enumerable: false,
configurable: false
});
- } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+main-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js?absolutePagePath=private-next-root-dir%2Fmiddleware.js&page=%2Fmiddleware&rootDir=%2Ftmp%2Fnext-stats%2Fstats-app&matchers=!
+ } // CONCATENATED MODULE: ./node_modules/.pnpm/file+..+diff-repo+packages+next+next-packed.tgz_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js?absolutePagePath=private-next-root-dir%2Fmiddleware.js&page=%2Fmiddleware&rootDir=%2Ftmp%2Fnext-stats%2Fstats-app&matchers=!
//# sourceMappingURL=adapter.js.map
enhanceGlobals();
- var mod = __webpack_require__(1085);
+ var mod = __webpack_require__(3578);
var handler = mod.middleware || mod.default;
if (typeof handler !== "function") {
@@ -1425,7 +1425,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 1085: /***/ (
+ /***/ 3578: /***/ (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -1437,7 +1437,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/* harmony export */
});
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
- 8352
+ 9541
);
/* harmony import */ var next_server__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(
next_server__WEBPACK_IMPORTED_MODULE_0__
@@ -1450,7 +1450,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 4989: /***/ (__unused_webpack_module, exports) => {
+ /***/ 5230: /***/ (__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -1470,7 +1470,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 1962: /***/ (__unused_webpack_module, exports) => {
+ /***/ 2546: /***/ (__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -1508,7 +1508,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 6450: /***/ (__unused_webpack_module, exports) => {
+ /***/ 9248: /***/ (__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -1540,15 +1540,19 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 12: /***/ (__unused_webpack_module, exports, __webpack_require__) => {
+ /***/ 540: /***/ (
+ __unused_webpack_module,
+ exports,
+ __webpack_require__
+ ) => {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.addLocale = addLocale;
- var _addPathPrefix = __webpack_require__(3120);
- var _pathHasPrefix = __webpack_require__(3245);
+ var _addPathPrefix = __webpack_require__(553);
+ var _pathHasPrefix = __webpack_require__(7699);
function addLocale(path, locale, defaultLocale, ignorePrefix) {
if (
locale &&
@@ -1568,7 +1572,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 3120: /***/ (
+ /***/ 553: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -1579,7 +1583,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
value: true
});
exports.addPathPrefix = addPathPrefix;
- var _parsePath = __webpack_require__(7718);
+ var _parsePath = __webpack_require__(4746);
function addPathPrefix(path, prefix) {
if (!path.startsWith("/") || !prefix) {
return path;
@@ -1591,7 +1595,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 5839: /***/ (
+ /***/ 9740: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -1602,7 +1606,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
value: true
});
exports.addPathSuffix = addPathSuffix;
- var _parsePath = __webpack_require__(7718);
+ var _parsePath = __webpack_require__(4746);
function addPathSuffix(path, suffix) {
if (!path.startsWith("/") || !suffix) {
return path;
@@ -1614,7 +1618,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 9364: /***/ (
+ /***/ 856: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -1625,10 +1629,10 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
value: true
});
exports.formatNextPathnameInfo = formatNextPathnameInfo;
- var _removeTrailingSlash = __webpack_require__(9944);
- var _addPathPrefix = __webpack_require__(3120);
- var _addPathSuffix = __webpack_require__(5839);
- var _addLocale = __webpack_require__(12);
+ var _removeTrailingSlash = __webpack_require__(8735);
+ var _addPathPrefix = __webpack_require__(553);
+ var _addPathSuffix = __webpack_require__(9740);
+ var _addLocale = __webpack_require__(540);
function formatNextPathnameInfo(info) {
let pathname = (0, _addLocale).addLocale(
info.pathname,
@@ -1659,7 +1663,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 9551: /***/ (
+ /***/ 4835: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -1670,9 +1674,9 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
value: true
});
exports.getNextPathnameInfo = getNextPathnameInfo;
- var _normalizeLocalePath = __webpack_require__(6450);
- var _removePathPrefix = __webpack_require__(4933);
- var _pathHasPrefix = __webpack_require__(3245);
+ var _normalizeLocalePath = __webpack_require__(9248);
+ var _removePathPrefix = __webpack_require__(5627);
+ var _pathHasPrefix = __webpack_require__(7699);
function getNextPathnameInfo(pathname, options) {
var _nextConfig;
const { basePath, i18n, trailingSlash } =
@@ -1722,7 +1726,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 7718: /***/ (__unused_webpack_module, exports) => {
+ /***/ 4746: /***/ (__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -1756,7 +1760,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 3245: /***/ (
+ /***/ 7699: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -1767,7 +1771,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
value: true
});
exports.pathHasPrefix = pathHasPrefix;
- var _parsePath = __webpack_require__(7718);
+ var _parsePath = __webpack_require__(4746);
function pathHasPrefix(path, prefix) {
if (typeof path !== "string") {
return false;
@@ -1779,7 +1783,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 4933: /***/ (
+ /***/ 5627: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -1790,7 +1794,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
value: true
});
exports.removePathPrefix = removePathPrefix;
- var _pathHasPrefix = __webpack_require__(3245);
+ var _pathHasPrefix = __webpack_require__(7699);
function removePathPrefix(path, prefix) {
if ((0, _pathHasPrefix).pathHasPrefix(path, prefix)) {
const withoutPrefix = path.slice(prefix.length);
@@ -1804,7 +1808,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 9944: /***/ (__unused_webpack_module, exports) => {
+ /***/ 8735: /***/ (__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -1818,7 +1822,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 6166: /***/ (module, exports, __webpack_require__) => {
+ /***/ 6204: /***/ (module, exports, __webpack_require__) => {
var __dirname = "/";
var __WEBPACK_AMD_DEFINE_RESULT__;
(() => {
@@ -2660,7 +2664,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 4524: /***/ (__unused_webpack_module, exports) => {
+ /***/ 8666: /***/ (__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -2701,7 +2705,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 3062: /***/ (
+ /***/ 4901: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -2711,10 +2715,10 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
Object.defineProperty(exports, "__esModule", {
value: true
});
- var _detectDomainLocale = __webpack_require__(1962);
- var _formatNextPathnameInfo = __webpack_require__(9364);
- var _getHostname = __webpack_require__(4989);
- var _getNextPathnameInfo = __webpack_require__(9551);
+ var _detectDomainLocale = __webpack_require__(2546);
+ var _formatNextPathnameInfo = __webpack_require__(856);
+ var _getHostname = __webpack_require__(5230);
+ var _getNextPathnameInfo = __webpack_require__(4835);
const REGEX_LOCALHOST_HOSTNAME = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|::1|localhost)/;
function parseURL(url, base) {
return new URL(
@@ -2934,7 +2938,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 6915: /***/ (
+ /***/ 4580: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -2956,15 +2960,15 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
return _responseCookies.ResponseCookies;
}
});
- var _requestCookies = __webpack_require__(6079);
- var _responseCookies = __webpack_require__(9442);
+ var _requestCookies = __webpack_require__(7205);
+ var _responseCookies = __webpack_require__(9618);
//# sourceMappingURL=index.js.map
/***/
},
- /***/ 6079: /***/ (
+ /***/ 7205: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -2974,7 +2978,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
Object.defineProperty(exports, "__esModule", {
value: true
});
- var _serialize = __webpack_require__(8213);
+ var _serialize = __webpack_require__(8477);
class RequestCookies {
_parsed = new Map();
constructor(requestHeaders) {
@@ -3071,7 +3075,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 9442: /***/ (
+ /***/ 9618: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -3081,7 +3085,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
Object.defineProperty(exports, "__esModule", {
value: true
});
- var _serialize = __webpack_require__(8213);
+ var _serialize = __webpack_require__(8477);
function replace(bag, headers) {
headers.delete("set-cookie");
for (const [, value] of bag) {
@@ -3178,7 +3182,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 8213: /***/ (__unused_webpack_module, exports) => {
+ /***/ 8477: /***/ (__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -3269,7 +3273,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 5829: /***/ (
+ /***/ 5985: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -3281,10 +3285,10 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
value: true
};
__webpack_unused_export__ = void 0;
- var _nextUrl = __webpack_require__(3062);
- var _utils = __webpack_require__(88);
- var _error = __webpack_require__(4524);
- var _cookies = __webpack_require__(6915);
+ var _nextUrl = __webpack_require__(4901);
+ var _utils = __webpack_require__(30);
+ var _error = __webpack_require__(8666);
+ var _cookies = __webpack_require__(4580);
const INTERNALS = Symbol("internal request");
__webpack_unused_export__ = INTERNALS;
class NextRequest extends Request {
@@ -3365,7 +3369,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 5277: /***/ (
+ /***/ 5165: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -3376,9 +3380,9 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
__webpack_unused_export__ = {
value: true
};
- var _nextUrl = __webpack_require__(3062);
- var _utils = __webpack_require__(88);
- var _cookies = __webpack_require__(6915);
+ var _nextUrl = __webpack_require__(4901);
+ var _utils = __webpack_require__(30);
+ var _cookies = __webpack_require__(4580);
const INTERNALS = Symbol("internal response");
const REDIRECTS = new Set([301, 302, 303, 307, 308]);
function handleMiddlewareField(init, headers) {
@@ -3487,7 +3491,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 7873: /***/ (
+ /***/ 9132: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -3501,7 +3505,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
__webpack_unused_export__ = isBot;
exports.Nf = userAgentFromString;
exports.WE = userAgent;
- var _uaParserJs = _interopRequireDefault(__webpack_require__(6166));
+ var _uaParserJs = _interopRequireDefault(__webpack_require__(6204));
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
@@ -3529,7 +3533,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 88: /***/ (__unused_webpack_module, exports) => {
+ /***/ 30: /***/ (__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -3646,14 +3650,14 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
/***/
},
- /***/ 8352: /***/ (module, exports, __webpack_require__) => {
+ /***/ 9541: /***/ (module, exports, __webpack_require__) => {
const serverExports = {
- NextRequest: __webpack_require__(5829) /* .NextRequest */.Im,
- NextResponse: __webpack_require__(5277) /* .NextResponse */.x,
+ NextRequest: __webpack_require__(5985) /* .NextRequest */.Im,
+ NextResponse: __webpack_require__(5165) /* .NextResponse */.x,
userAgentFromString: __webpack_require__(
- 7873
+ 9132
) /* .userAgentFromString */.Nf,
- userAgent: __webpack_require__(7873) /* .userAgent */.WE
+ userAgent: __webpack_require__(9132) /* .userAgent */.WE
};
if (typeof URLPattern !== "undefined") {
@@ -3679,7 +3683,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
// webpackRuntimeModules
/******/ var __webpack_exec__ = moduleId =>
__webpack_require__((__webpack_require__.s = moduleId));
- /******/ var __webpack_exports__ = __webpack_exec__(1675);
+ /******/ var __webpack_exports__ = __webpack_exec__(5354);
/******/ (_ENTRIES =
typeof _ENTRIES === "undefined"
? {}
Diff for edge-ssr.js
Diff too large to display
Diff for _buildManifest.js
@@ -1,28 +1,28 @@
self.__BUILD_MANIFEST = {
__rewrites: { beforeFiles: [], afterFiles: [], fallback: [] },
- "/": ["static\u002Fchunks\u002Fpages\u002Findex-72f4ed6964652f6a.js"],
- "/_error": ["static\u002Fchunks\u002Fpages\u002F_error-c6d6c7c386122218.js"],
- "/amp": ["static\u002Fchunks\u002Fpages\u002Famp-b62e7c28809c13e0.js"],
+ "/": ["static\u002Fchunks\u002Fpages\u002Findex-d30a580d3c17f4d9.js"],
+ "/_error": ["static\u002Fchunks\u002Fpages\u002F_error-a9ef5f835b494eed.js"],
+ "/amp": ["static\u002Fchunks\u002Fpages\u002Famp-0caeab3cd7ed5bbd.js"],
"/css": [
"static\u002Fcss\u002F94fdbc56eafa2039.css",
- "static\u002Fchunks\u002Fpages\u002Fcss-9ff2b163b1f26520.js"
+ "static\u002Fchunks\u002Fpages\u002Fcss-a9db2d7f8fc4c5df.js"
],
"/dynamic": [
- "static\u002Fchunks\u002Fpages\u002Fdynamic-4591ab3efbed1651.js"
+ "static\u002Fchunks\u002Fpages\u002Fdynamic-22676b8e3bef59c7.js"
],
"/edge-ssr": [
- "static\u002Fchunks\u002Fpages\u002Fedge-ssr-a57e88de1ff426bd.js"
+ "static\u002Fchunks\u002Fpages\u002Fedge-ssr-5d2cdb3b4a9fabd5.js"
],
- "/head": ["static\u002Fchunks\u002Fpages\u002Fhead-b5894c626904a778.js"],
- "/hooks": ["static\u002Fchunks\u002Fpages\u002Fhooks-874b5779f127e436.js"],
- "/image": ["static\u002Fchunks\u002Fpages\u002Fimage-854b6400b5b29f63.js"],
- "/link": ["static\u002Fchunks\u002Fpages\u002Flink-64f5c14f89f65607.js"],
+ "/head": ["static\u002Fchunks\u002Fpages\u002Fhead-248ef55290815b7c.js"],
+ "/hooks": ["static\u002Fchunks\u002Fpages\u002Fhooks-624e3ee1c369c918.js"],
+ "/image": ["static\u002Fchunks\u002Fpages\u002Fimage-96d840698946c2ee.js"],
+ "/link": ["static\u002Fchunks\u002Fpages\u002Flink-4acf1a45f96a1672.js"],
"/routerDirect": [
- "static\u002Fchunks\u002Fpages\u002FrouterDirect-0be908911bf83c00.js"
+ "static\u002Fchunks\u002Fpages\u002FrouterDirect-5c05820a2fc8ec29.js"
],
- "/script": ["static\u002Fchunks\u002Fpages\u002Fscript-fa22c9b29b4b53ec.js"],
+ "/script": ["static\u002Fchunks\u002Fpages\u002Fscript-20414a8a58346938.js"],
"/withRouter": [
- "static\u002Fchunks\u002Fpages\u002FwithRouter-9bdea6c06adf2771.js"
+ "static\u002Fchunks\u002Fpages\u002FwithRouter-edc4e76b107d965e.js"
],
sortedPages: [
"\u002F",
Diff for _app-HASH.js
@@ -1,7 +1,7 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[888],
{
- /***/ 3115: /***/ function(
+ /***/ 1113: /***/ function(
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -9,7 +9,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/_app",
function() {
- return __webpack_require__(5791);
+ return __webpack_require__(1731);
}
]);
if (false) {
@@ -24,7 +24,7 @@
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ __webpack_require__.O(0, [179], function() {
- return __webpack_exec__(3115), __webpack_exec__(8995);
+ return __webpack_exec__(1113), __webpack_exec__(4888);
});
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for _error-HASH.js
@@ -1,7 +1,7 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[820],
{
- /***/ 5374: /***/ function(
+ /***/ 3363: /***/ function(
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -9,7 +9,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/_error",
function() {
- return __webpack_require__(9437);
+ return __webpack_require__(5750);
}
]);
if (false) {
@@ -24,7 +24,7 @@
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ __webpack_require__.O(0, [888, 179], function() {
- return __webpack_exec__(5374);
+ return __webpack_exec__(3363);
});
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for amp-HASH.js
@@ -1,17 +1,17 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[216],
{
- /***/ 8510: /***/ function(
+ /***/ 8753: /***/ function(
module,
__unused_webpack_exports,
__webpack_require__
) {
- module.exports = __webpack_require__(6146);
+ module.exports = __webpack_require__(8082);
/***/
},
- /***/ 7010: /***/ function(
+ /***/ 5348: /***/ function(
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -19,7 +19,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/amp",
function() {
- return __webpack_require__(2725);
+ return __webpack_require__(4749);
}
]);
if (false) {
@@ -28,7 +28,7 @@
/***/
},
- /***/ 6146: /***/ function(module, exports, __webpack_require__) {
+ /***/ 8082: /***/ function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -37,9 +37,9 @@
exports.useAmp = useAmp;
var _interop_require_default = __webpack_require__(1322) /* ["default"] */
.Z;
- var _react = _interop_require_default(__webpack_require__(2947));
- var _ampContext = __webpack_require__(7298);
- var _ampMode = __webpack_require__(3798);
+ var _react = _interop_require_default(__webpack_require__(465));
+ var _ampContext = __webpack_require__(4964);
+ var _ampMode = __webpack_require__(8701);
function useAmp() {
// Don't assign the context value to a variable to save bytes
return (0, _ampMode).isInAmpMode(
@@ -61,7 +61,7 @@
/***/
},
- /***/ 2725: /***/ function(
+ /***/ 4749: /***/ function(
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -78,7 +78,7 @@
/* harmony export */
});
/* harmony import */ var next_amp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
- 8510
+ 8753
);
/* harmony import */ var next_amp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(
next_amp__WEBPACK_IMPORTED_MODULE_0__
@@ -102,7 +102,7 @@
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ __webpack_require__.O(0, [888, 179], function() {
- return __webpack_exec__(7010);
+ return __webpack_exec__(5348);
});
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for css-HASH.js
@@ -1,7 +1,7 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[706],
{
- /***/ 860: /***/ function(
+ /***/ 6437: /***/ function(
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -9,7 +9,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/css",
function() {
- return __webpack_require__(2998);
+ return __webpack_require__(900);
}
]);
if (false) {
@@ -18,7 +18,7 @@
/***/
},
- /***/ 5189: /***/ function(module) {
+ /***/ 4229: /***/ function(module) {
// extracted by mini-css-extract-plugin
module.exports = { helloWorld: "css_helloWorld__qqNwY" };
module.exports.__checksum =
@@ -27,7 +27,7 @@
/***/
},
- /***/ 2998: /***/ function(
+ /***/ 900: /***/ function(
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -35,10 +35,10 @@
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
- 3268
+ 9701
);
/* harmony import */ var _css_module_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
- 5189
+ 4229
);
/* harmony import */ var _css_module_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(
_css_module_css__WEBPACK_IMPORTED_MODULE_1__
@@ -58,7 +58,7 @@
/***/
},
- /***/ 6205: /***/ function(
+ /***/ 1963: /***/ function(
__unused_webpack_module,
exports,
__webpack_require__
@@ -73,7 +73,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
- var f = __webpack_require__(2947),
+ var f = __webpack_require__(465),
k = Symbol.for("react.element"),
l = Symbol.for("react.fragment"),
m = Object.prototype.hasOwnProperty,
@@ -108,7 +108,7 @@
/***/
},
- /***/ 3268: /***/ function(
+ /***/ 9701: /***/ function(
module,
__unused_webpack_exports,
__webpack_require__
@@ -116,7 +116,7 @@
"use strict";
if (true) {
- module.exports = __webpack_require__(6205);
+ module.exports = __webpack_require__(1963);
} else {
}
@@ -129,7 +129,7 @@
return __webpack_require__((__webpack_require__.s = moduleId));
};
/******/ __webpack_require__.O(0, [888, 179], function() {
- return __webpack_exec__(860);
+ return __webpack_exec__(6437);
});
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for dynamic-HASH.js
@@ -1,7 +1,7 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[739],
{
- /***/ 3995: /***/ function(
+ /***/ 7753: /***/ function(
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -9,7 +9,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/dynamic",
function() {
- return __webpack_require__(9780);
+ return __webpack_require__(6834);
}
]);
if (false) {
@@ -18,7 +18,38 @@
/***/
},
- /***/ 4648: /***/ function(module, exports, __webpack_require__) {
+ /***/ 7101: /***/ function(
+ __unused_webpack_module,
+ exports,
+ __webpack_require__
+ ) {
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports["default"] = NoSSR;
+ exports.suspense = suspense;
+ var _interop_require_default = __webpack_require__(1322) /* ["default"] */
+ .Z;
+ var _react = _interop_require_default(__webpack_require__(465));
+ var _noSsrError = __webpack_require__(7058);
+ function NoSSR(param) {
+ let { children } = param;
+ if (false) {
+ }
+ return children;
+ }
+ function suspense() {
+ const error = new Error(_noSsrError.NEXT_DYNAMIC_NO_SSR_CODE);
+ error.digest = _noSsrError.NEXT_DYNAMIC_NO_SSR_CODE;
+ throw error;
+ } //# sourceMappingURL=dynamic-no-ssr.js.map
+
+ /***/
+ },
+
+ /***/ 2494: /***/ function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -29,24 +60,24 @@
var _extends = __webpack_require__(5321) /* ["default"] */.Z;
var _interop_require_default = __webpack_require__(1322) /* ["default"] */
.Z;
- var _react = _interop_require_default(__webpack_require__(2947));
- var _loadable = _interop_require_default(__webpack_require__(7007));
+ var _interop_require_wildcard = __webpack_require__(
+ 6687
+ ) /* ["default"] */.Z;
+ var _react = _interop_require_wildcard(__webpack_require__(465));
+ var _loadable = _interop_require_default(__webpack_require__(971));
+ var _dynamicNoSsr = _interop_require_default(__webpack_require__(7101));
function dynamic(dynamicOptions, options) {
let loadableFn = _loadable.default;
- let loadableOptions = (options == null
- ? void 0
- : options.suspense)
- ? {}
- : {
- // A loading component is not required, so we default it
- loading: param => {
- let { error, isLoading, pastDelay } = param;
- if (!pastDelay) return null;
- if (false) {
- }
- return null;
- }
- };
+ let loadableOptions = {
+ // A loading component is not required, so we default it
+ loading: param => {
+ let { error, isLoading, pastDelay } = param;
+ if (!pastDelay) return null;
+ if (false) {
+ }
+ return null;
+ }
+ };
// Support for direct import(), eg: dynamic(import('../hello-world'))
// Note that this is only kept for the edge case where someone is passing in a promise as first argument
// The react-loadable babel plugin will turn dynamic(import('../hello-world')) into dynamic(() => import('../hello-world'))
@@ -62,53 +93,64 @@
}
// Support for passing options, eg: dynamic(import('../hello-world'), {loading: () => <p>Loading something</p>})
loadableOptions = _extends({}, loadableOptions, options);
- if (loadableOptions.suspense) {
- if (false) {
- }
- delete loadableOptions.ssr;
- delete loadableOptions.loading;
- }
+ const loaderFn = loadableOptions.loader;
+ const loader = () => loaderFn().then(convertModule);
// coming from build/babel/plugins/react-loadable-plugin.js
if (loadableOptions.loadableGenerated) {
loadableOptions = _extends(
{},
loadableOptions,
- loadableOptions.loadableGenerated
+ loadableOptions.loadableGenerated,
+ {
+ loader
+ }
);
delete loadableOptions.loadableGenerated;
}
- // support for disabling server side rendering, eg: dynamic(import('../hello-world'), {ssr: false}).
- // skip `ssr` for suspense mode and opt-in React.lazy directly
- if (
- typeof loadableOptions.ssr === "boolean" &&
- !loadableOptions.suspense
- ) {
+ // support for disabling server side rendering, eg: dynamic(() => import('../hello-world'), {ssr: false}).
+ if (typeof loadableOptions.ssr === "boolean") {
if (!loadableOptions.ssr) {
delete loadableOptions.ssr;
- return noSSR(loadableFn, loadableOptions);
+ return noSSR(loader, loadableOptions);
}
delete loadableOptions.ssr;
}
return loadableFn(loadableOptions);
}
- const isServerSide = "object" === "undefined";
+ // Normalize loader to return the module as form { default: Component } for `React.lazy`.
+ // Also for backward compatible since next/dynamic allows to resolve a component directly with loader
+ // Client component reference proxy need to be converted to a module.
+ function convertModule(mod) {
+ return {
+ default: mod.default || mod
+ };
+ }
function noSSR(LoadableInitializer, loadableOptions) {
// Removing webpack and modules means react-loadable won't try preloading
delete loadableOptions.webpack;
delete loadableOptions.modules;
- // This check is necessary to prevent react-loadable from initializing on the server
- if (!isServerSide) {
- return LoadableInitializer(loadableOptions);
- }
+ const NoSSRComponent = /*#__PURE__*/ (0, _react).lazy(
+ LoadableInitializer
+ );
const Loading = loadableOptions.loading;
- // This will only be rendered on the server side
+ const fallback = /*#__PURE__*/ _react.default.createElement(Loading, {
+ error: null,
+ isLoading: true,
+ pastDelay: false,
+ timedOut: false
+ });
return () =>
- /*#__PURE__*/ _react.default.createElement(Loading, {
- error: null,
- isLoading: true,
- pastDelay: false,
- timedOut: false
- });
+ /*#__PURE__*/ _react.default.createElement(
+ _react.Suspense,
+ {
+ fallback: fallback
+ },
+ /*#__PURE__*/ _react.default.createElement(
+ _dynamicNoSsr.default,
+ null,
+ /*#__PURE__*/ _react.default.createElement(NoSSRComponent, null)
+ )
+ );
}
if (
(typeof exports.default === "function" ||
@@ -125,7 +167,7 @@
/***/
},
- /***/ 1446: /***/ function(
+ /***/ 9605: /***/ function(
__unused_webpack_module,
exports,
__webpack_require__
@@ -138,7 +180,7 @@
exports.LoadableContext = void 0;
var _interop_require_default = __webpack_require__(1322) /* ["default"] */
.Z;
- var _react = _interop_require_default(__webpack_require__(2947));
+ var _react = _interop_require_default(__webpack_require__(465));
const LoadableContext = _react.default.createContext(null);
exports.LoadableContext = LoadableContext;
if (false) {
@@ -147,7 +189,7 @@
/***/
},
- /***/ 7007: /***/ function(
+ /***/ 971: /***/ function(
__unused_webpack_module,
exports,
__webpack_require__
@@ -159,11 +201,10 @@
});
exports["default"] = void 0;
var _extends = __webpack_require__(5321) /* ["default"] */.Z;
- var _interop_require_wildcard = __webpack_require__(
- 6687
- ) /* ["default"] */.Z;
- var _react = _interop_require_wildcard(__webpack_require__(2947));
- var _loadableContext = __webpack_require__(1446);
+ var _interop_require_default = __webpack_require__(1322) /* ["default"] */
+ .Z;
+ var _react = _interop_require_default(__webpack_require__(465));
+ var _loadableContext = __webpack_require__(9605);
const ALL_INITIALIZERS = [];
const READY_INITIALIZERS = [];
let initialized = false;
@@ -187,9 +228,6 @@
});
return state;
}
- function resolve(obj) {
- return obj && obj.__esModule ? obj.default : obj;
- }
function createLoadableComponent(loadFn, options) {
let opts = Object.assign(
{
@@ -198,14 +236,11 @@
delay: 200,
timeout: null,
webpack: null,
- modules: null,
- suspense: false
+ modules: null
},
options
);
- if (opts.suspense) {
- opts.lazy = _react.default.lazy(opts.loader);
- }
+ opts.lazy = _react.default.lazy(opts.loader);
/** @type LoadableSubscription */ let subscription = null;
function init() {
if (!subscription) {
@@ -250,49 +285,24 @@
});
}
}
- function LoadableImpl(props, ref) {
- useLoadableModule();
- const state = (0, _react).useSyncExternalStore(
- subscription.subscribe,
- subscription.getCurrentValue,
- subscription.getCurrentValue
- );
- _react.default.useImperativeHandle(
- ref,
- () => ({
- retry: subscription.retry
- }),
- []
- );
- return _react.default.useMemo(() => {
- if (state.loading || state.error) {
- return _react.default.createElement(opts.loading, {
- isLoading: state.loading,
- pastDelay: state.pastDelay,
- timedOut: state.timedOut,
- error: state.error,
- retry: subscription.retry
- });
- } else if (state.loaded) {
- return _react.default.createElement(resolve(state.loaded), props);
- } else {
- return null;
- }
- }, [props, state]);
- }
- function LazyImpl(props, ref) {
+ function LoadableComponent(props) {
useLoadableModule();
+ const fallbackElement = _react.default.createElement(opts.loading, {
+ isLoading: true,
+ pastDelay: true,
+ error: null
+ });
return _react.default.createElement(
- opts.lazy,
- _extends({}, props, {
- ref
- })
+ _react.default.Suspense,
+ {
+ fallback: fallbackElement
+ },
+ _react.default.createElement(opts.lazy, props)
);
}
- const LoadableComponent = opts.suspense ? LazyImpl : LoadableImpl;
LoadableComponent.preload = () => init();
LoadableComponent.displayName = "LoadableComponent";
- return _react.default.forwar
Post job cleanup.
[command]/usr/bin/git version
git version 2.38.1
Temporarily overriding HOME='/home/runner/work/_temp/0dcb729e-c70a-4fce-a27c-b96159281b27' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/next.js/next.js
[command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
[command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
[command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
http.https://github.com/.extraheader
[command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
Cleaning up orphan processes
Commit: 40d1f5d62b118a654d9ff7b1f5a2405ef5851e58
This changed the undocumented way to programmatically preload LoadableComponent
s from dynamic
, it is now LoadableComponent.preload()
rather than LoadableComponent.render.preload()
.
This changed the undocumented way to programmatically preload
LoadableComponent
s fromdynamic
, it is nowLoadableComponent.preload()
rather thanLoadableComponent.render.preload()
.
@klarstrup looks like .preload()
no longer exists on LoadableComponent
. We are using jest-next-dynamic
which seems to have broken with this PR, any chance you know how to preload a component now?
Under further review, it looks like .preload()
does not exist when ssr: false
@arishoham as described the method is still there except it is now on the parent rather than render
As of Next 13.1 it appears that preload method doesn't exist as described above. It doesn't even appear to be an object.
Is there a known fix?

I see that there is future planned "offscreen" support in React. Will this a solution?
https://reactjs.org/blog/2022/03/29/react-v18.html
As of Next 13.1 it appears that preload method doesn't exist as described above. It doesn't even appear to be an object.
Is there a known fix?
![]()
It's still there as described above
Hmm. I get a different result when console printing. Am I printing this out properly?

It appears that this change that makes it no longer an object occurred on Next 13.0.7. If I console log in 13.0.6, I get an object with preload function as expected. Can you please clear lockfile and pin to latest version of Next to verify?
Sorry to butt in on your discussion, but I finally nailed down a minimal reproducible example of an issue I'm seeing that appears related to this change. This is the error itself: Error: This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.
.
It can be reproduced easily enough with this component which I believe should work fine:
import dynamic from "next/dynamic";
import {Component} from "react";
const SomeComponent = dynamic(() => import("../src/SomeComponent"));
export default class Index extends Component<any, any> {
state = {
test: "123",
}
componentDidMount() {
this.setState({
test: "234",
})
}
render() {
return <SomeComponent />
}
}
Where SomeComponent
can be anything you want. It doesn't like setting state inside componentDidMount
when rendering a dynamic component. I'm on [email protected]. I was not experiencing this issue in [email protected].
@agusterodin did you try calling/logging Timeline.preload
yet? You can use console.dir
to see any properties of a function instead of the stringified function as console.log
provides
@huozhi are there plans to fix the underlying issue here as stated above?
@agusterodin @klarstrup the issue is the preload
function no longer exists when {ssr: false}
@davidgolden you should use React.startTransition
for the setState in componentDidMount as the react warning suggested
Adding the preload()
back in https://github.com/vercel/next.js/pull/44832
@davidgolden you should use
React.startTransition
for the setState in componentDidMount as the react warning suggested
This fixes it. I also just found that useLayoutEffect
inside a dynamically loaded component causes the same issue. This feels like a bit of a breaking change that I'm surprised popped up in a minor version.
@huozhi We can add startTransition
to own code but it's problem when we use hooks from some library where setState is called in useEffect/useLayoutEffect :)
Are there any idea what we can do in this case?
@icekhab could you file a new issue with more detailed repro and description for your case? Thanks