build失败
Closed this issue · 5 comments
wangjiudeng commented
node_modules/.pnpm/@VUE+shared@3.2.36/node_modules/@vue/shared/dist/shared.d.ts:110:54 - error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
110 export declare const isSet: (val: unknown) => val is Set;
wangjiudeng commented
wangjiudeng commented
假如当组件库使用的时候,需不需要build。是不是直接放git上,其他项目install是不是就可以了?
ChuHoMan commented
- Have you run pnpm install beforehand? I haven't encountered any build failures on my end.
- To make the component library usable, you need to publish it to npm.
- 你预先执行了
pnpm install
了吗?我这边没遇到过build
失败。 - 如果要让组件库使用,需要
publish
到npm
中
wangjiudeng commented
预先执行了
ChuHoMan commented
提供更多的信息,在命令行执行 npx envinfo --system --binaries --browsers
。其次可以尝试删除 node_modules 重新进行 pnpm install