-
Notifications
You must be signed in to change notification settings - Fork 624
Closed as duplicate of#3047
Closed as duplicate of#3047
Copy link
Labels
Description
Reproduction link or steps
import json from '@rollup/plugin-json'
// ... some configs
input,
output,
plugins: [
json() as RolldownPlugin,
],
What is expected?
build success
What is actually happening?
outputs
vueuse pnpm run build
> @vueuse/monorepo@12.2.0 build D:\Projects\github\forks\vueuse
> nr update && pnpm -r run build
> @vueuse/monorepo@12.2.0 update D:\Projects\github\forks\vueuse
> nr -C packages/metadata update && tsx scripts/update.ts
> @vueuse/metadata@12.2.0 update D:\Projects\github\forks\vueuse\packages\metadata
> tsx scripts/update.ts
No types dist found, run `npm run build:types` first.
Scope: 11 of 12 workspace projects
packages/metadata build$ rolldown --config=rolldown.config.ts
│ Error: Build failed with 8 errors:
│ Error: [EXPORT_UNDEFINED_VARIABLE] Error: `metadata` is not declared in this file
│ ╭─[metadata.ts:13:10]
│ │
│ 13 │ export { metadata, functions, packages, categories, functionNames, categoryNames, coreCategoryNames, addonCategoryNames, getFunction };
│ │ ────┬───
│ │ ╰─────
│ ────╯
│ Error: [EXPORT_UNDEFINED_VARIABLE] Error: `functions` is not declared in this file
│ ╭─[metadata.ts:13:20]
│ │
│ 13 │ export { metadata, functions, packages, categories, functionNames, categoryNames, coreCategoryNames, addonCategoryNames, getFunction };
│ │ ────┬────
│ │ ╰──────
│ ────╯
│ Error: [EXPORT_UNDEFINED_VARIABLE] Error: `packages` is not declared in this file
│ ╭─[metadata.ts:13:31]
│ │
│ 13 │ export { metadata, functions, packages, categories, functionNames, categoryNames, coreCategoryNames, addonCategoryNames, getFunction };
│ │ ────┬───
│ │ ╰─────
│ ────╯
│ Error: [EXPORT_UNDEFINED_VARIABLE] Error: `categories` is not declared in this file
│ ╭─[metadata.ts:13:41]
│ │
│ 13 │ export { metadata, functions, packages, categories, functionNames, categoryNames, coreCategoryNames, addonCategoryNames, getFunction };
│ │ ─────┬────
│ │ ╰──────
│ ────╯
│ Error: [EXPORT_UNDEFINED_VARIABLE] Error: `functionNames` is not declared in this file
│ ╭─[metadata.ts:13:53]
│ │
│ 13 │ export { metadata, functions, packages, categories, functionNames, categoryNames, coreCategoryNames, addonCategoryNames, getFunction };
│ │ ──────┬──────
│ │ ╰────────
│ ────╯
│ ...
│ at normalizeErrors (file:///D:/Projects/github/forks/vueuse/node_modules/.pnpm/rolldown@1.0.0-beta.1_@babel+runtime@7.21.5/node_modules/rolldown/dist/shared/src-Bb3zZkPW.mjs:79:18)
│ at handleOutputErrors (file:///D:/Projects/github/forks/vueuse/node_modules/.pnpm/rolldown@1.0.0-beta.1_@babel+runtime@7.21.5/node_modules/rolldown/dist/shared/src-Bb3zZkPW.mjs:230:34)
│ at transformToRollupOutput (file:///D:/Projects/github/forks/vueuse/node_modules/.pnpm/rolldown@1.0.0-beta.1_@babel+runtime@7.21.5/node_modules/rolldown/dist/shared/src-Bb3zZkPW.mjs:224:2)
│ at RolldownBuild.write (file:///D:/Projects/github/forks/vueuse/node_modules/.pnpm/rolldown@1.0.0-beta.1_@babel+runtime@7.21.5/node_modules/rolldown/dist/shared/src-Bb3zZkPW.mjs:2706:10)
│ at async bundleInner (file:///D:/Projects/github/forks/vueuse/node_modules/.pnpm/rolldown@1.0.0-beta.1_@babel+runtime@7.21.5/node_modules/rolldown/dist/esm/cli.mjs:445:17)
│ at async bundleWithConfig (file:///D:/Projects/github/forks/vueuse/node_modules/.pnpm/rolldown@1.0.0-beta.1_@babel+runtime@7.21.5/node_modules/rolldown/dist/esm/cli.mjs:365:6)
│ at async main (file:///D:/Projects/github/forks/vueuse/node_modules/.pnpm/rolldown@1.0.0-beta.1_@babel+runtime@7.21.5/node_modules/rolldown/dist/esm/cli.mjs:2004:3) {
│ errors: [Getter/Setter]
│ }
└─ Failed in 3.2s at D:\Projects\github\forks\vueuse\packages\metadata
packages/shared build$ rolldown --config=rolldown.config.ts
└─ Running...
D:\Projects\github\forks\vueuse\packages\metadata:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @vueuse/metadata@12.2.0 build: `rolldown --config=rolldown.config.ts`
Exit status 1
WARN Local package.json exists, but node_modules missing, did you mean to install?
System Info
System:
OS: Windows 11 10.0.22631
CPU: (16) x64 12th Gen Intel(R) Core(TM) i7-12650H
Memory: 15.00 GB / 31.74 GB
Binaries:
Node: 20.18.0 - ~\AppData\Local\pnpm\node.EXE
Yarn: 1.22.22 - ~\AppData\Local\pnpm\yarn.CMD
npm: 10.8.2 - ~\AppData\Local\pnpm\npm.CMD
pnpm: 9.15.1 - D:\Projects\github\forks\vueuse\node_modules\.bin\pnpm.CMD
Browsers:
Edge: Chromium (127.0.2651.105)
Internet Explorer: 11.0.22621.3527
npmPackages:
rolldown: 1.0.0-beta.1 => 1.0.0-beta.1
Any additional comments?
No response