-
-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Labels
🐞 bugSomething isn't workingSomething isn't working
Description
Version
System:
OS: Windows 11 10.0.22631
CPU: (20) x64 13th Gen Intel(R) Core(TM) i9-13900H
Memory: 4.24 GB / 31.75 GB
Browsers:
Edge: Chromium (128.0.2739.42)
Internet Explorer: 11.0.22621.3527
@rslib/core: ^0.1.0Details
使用 pnpm workspace 时打包 dts 会报错
When using pnpm workspace, there is an error when packaging dts.
Reproduce link
https://github.com/Zhang-Wei-666/rslib-bug-report/tree/3
Reproduce Steps
在根目录下运行以下命令进行构建
pnpm i && pnpm buildpack-1 打包无问题, pack-2 引用 pack-1, pack-2 打包 dts 时会报错
Run the following command in the root directory to build.
pnpm i && pnpm buildpack-1 packs without any issues. pack-2 references pack-1, but encounters an error when packing dts for pack-2.
error API Extractor Error
error Error: Error parsing the configuration object:
The "mainEntryPointFilePath" path does not exist: D:\GitHub\rslib-bug-report\packages\pack-2\.rslib\declarations\index.d.ts
at bundleDts (file:///D:/GitHub/rslib-bug-report/node_modules/.pnpm/rsbuild-plugin-dts@0.1.0_@microsoft+api-extractor@7.47.12_@rsbuild+core@1.1.4_typescript@5.6.3/node_modules/rsbuild-plugin-dts/dist/apiExtractor.js:40:15)
at bundleDtsIfNeeded (file:///D:/GitHub/rslib-bug-report/node_modules/.pnpm/rsbuild-plugin-dts@0.1.0_@microsoft+api-extractor@7.47.12_@rsbuild+core@1.1.4_typescript@5.6.3/node_modules/rsbuild-plugin-dts/dist/dts.js:94:19)
at async generateDts (file:///D:/GitHub/rslib-bug-report/node_modules/.pnpm/rsbuild-plugin-dts@0.1.0_@microsoft+api-extractor@7.47.12_@rsbuild+core@1.1.4_typescript@5.6.3/node_modules/rsbuild-plugin-dts/dist/dts.js:126:19)
at async process.<anonymous> (file:///D:/GitHub/rslib-bug-report/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]/node_modules/rsbuild-plugin-dts/dist/dts.js:131:9)
error Failed to build.
error Error occurred in esm DTS generation
at handler (file:///D:/GitHub/rslib-bug-report/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]/node_modules/rsbuild-plugin-dts/dist/index.js:61:57)
at Object.call (file:///D:/GitHub/rslib-bug-report/node_modules/.pnpm/@[email protected]/node_modules/@rsbuild/core/dist/index.js:2389:36)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async onDone (file:///D:/GitHub/rslib-bug-report/node_modules/.pnpm/@[email protected]/node_modules/@rsbuild/core/dist/index.js:2436:30)
at async Object.fn (file:///D:/GitHub/rslib-bug-report/node_modules/.pnpm/@[email protected]/node_modules/@rsbuild/core/dist/index.js:2420:76)
ELIFECYCLE Command failed with exit code 1.Metadata
Metadata
Assignees
Labels
🐞 bugSomething isn't workingSomething isn't working