perf: performance overhaul #6816
Annotations
4 errors
test/bundle.test.ts > minimal nuxt application:
test/bundle.test.ts#L12
ExecaError: Command failed with exit code 1: pnpm nuxi build /home/runner/work/nuxt/nuxt/test/fixtures/minimal
[warn] Changing `NODE_ENV` from `test` to `production`, to avoid unintended behavior.
[warn] The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
[error] x Build failed in 869ms
[error] Nuxt Build Error: packages/nuxt/src/app/nuxt.ts (26:9): "buildId" is not exported by "virtual:nuxt:/home/runner/work/nuxt/nuxt/test/fixtures/minimal/.nuxt-inline/nuxt.config.mjs", imported by "packages/nuxt/src/app/nuxt.ts".
file: /home/runner/work/nuxt/nuxt/packages/nuxt/src/app/nuxt.ts:26:9
24:
25: // @ts-expect-error virtual import
26: import { buildId } from '#build/nuxt.config.mjs'
^
27:
28: function getNuxtAppCtx (appName?: string) {
file: packages/nuxt/src/app/nuxt.ts:26:9
24:
25: // @ts-expect-error virtual import
26: import { buildId } from '#build/nuxt.config.mjs'
^
27:
28: function getNuxtAppCtx (appName?: string) {
at getRollupError (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/parseAst.js:394:41)
at error (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/parseAst.js:390:42)
at Module.error (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:13855:16)
at Module.traceVariable (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:14303:29)
at ModuleScope.findVariable (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:11984:39)
at FunctionScope.findVariable (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
at FunctionBodyScope.findVariable (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
at Identifier.bind (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:6908:40)
at LogicalExpression.bind (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:4775:23)
at LogicalExpression.bind (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:4775:23)
at CallExpression.bind (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:4771:28)
at CallExpression.bind (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:9135:15)
at ReturnStatement.bind (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:4775:23)
at BlockStatement.bind (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:4771:28)
at FunctionDeclaration.bind (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:4775:23)
at Program.bind (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:4771:28)
at Module.bindReferences (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:13836:18)
at Graph.sortModules (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:20066:20)
at Graph.build (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:19970:14)
at async node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:20615:13
at async catchUnfinishedHookActions (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:20123:16)
at async rollupInternal (node_modules/.pnpm/rollup@4.17.2/node_modules/rollup/dist/es/shared/node-entry.js:20610:5)
at async Module.build (node_modules/.pnpm/vite@5.2.11_@types+node@20.12.11_sass@1.69.4_terser@5.27.0/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:67475:18)
at async buildClient (packages/vite/src/client.ts:218:5)
at async bundle (packages/vite/src/vite.ts:228:3)
at async bundle (packages/nuxt/src/core/builder.ts:200:5)
at async Promise.all (index 1)
at async build (packages/nuxt/src/core/builder.ts:47:5)
at async Object.run (node_modules/.pnpm/nuxi@3.11
|
code
Process completed with exit code 1.
|
Unhandled error:
node_modules/.pnpm/@nuxt+test-utils@3.12.1_@testing-library+vue@8.0.3_@vue+compiler-sfc@3.4.27_vue@3.4.27_typesc_pqkl7b6zk6yli3p3xx6jeuzvya/node_modules/@nuxt/test-utils/dist/runtime-utils/index.mjs#L113
ReferenceError: Cannot access 'vm' before initialization
❯ node_modules/.pnpm/@nuxt+test-utils@3.12.1_@testing-library+vue@8.0.3_@vue+compiler-sfc@3.4.27_vue@3.4.27_typesc_pqkl7b6zk6yli3p3xx6jeuzvya/node_modules/@nuxt/test-utils/dist/runtime-utils/index.mjs:113:17
|
code
Process completed with exit code 1.
|