-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
4.0.0-beta.3
Environment
chrome:版本 113.0.5672.93(正式版本) (64 位)node: 16.14.2 npm:8.5.0 pnpm:7.26.3
Reproduction link
https://github.com/vueComponent/ant-design-vue
Steps to reproduce
下载的是4.0.0-rc.1 版本
采用pnpm 进行包管理
pnpm 版本7.26.3
执行 pnpm run compile 进行打包
最后编译的时候
[Parallel] Compile to es...
[Parallel] Compile to js...
部分报错
components\_util\ActionButton.tsx(11,7): error TS2742: The inferred type of 'actionButtonProps' cannot be named without a reference to '.pnpm/vue-types@3.0.2_vue@3.3.4/node_modules/vue-types'. This is likely not portable. A type annotation is necessary.
components\_util\ActionButton.tsx(30,1): error TS2742: The inferred type of 'default' cannot be named without a reference to '.pnpm/vue-types@3.0.2_vue@3.3.4/node_modules/vue-types'. This is likely not
portable. A type annotation is necessary.
components\_util\BaseInput.tsx(4,7): error TS2742: The inferred type of 'BaseInput' cannot be named without a reference to '.pnpm/vue-types@3.0.2_vue@3.3.4/node_modules/vue-types'. This is likely not portable. A type annotation is necessary.
components\_util\Portal.tsx(13,1): error TS2742: The inferred type of 'default' cannot be named without a reference to '.pnpm/vue-types@3.0.2_vue@3.3.4/node_modules/vue-types'. This is likely not portable. A type annotation is necessary.
types@3.0.2_vue@3.3.4/node_modules/vue-types'. 根据这个路径,在本地node_module包里面查看依赖文件是存在的
What is expected?
希望用pnpm 包管理执行 pnpm run compile 打包构建成功
(注意这里的版本是4.0.0-rc.1 版本,选项中没有这个版本)
What is actually happening?
pnpm run compile 打包构建失败
pnpm run dev(这个命令能够执行成功并且访问)