Open
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
4.2.6
Environment
node@20.10.0; pnpm@10.5.2; Windows 11 家庭版
Reproduction link
https://github.com/zxywftr/ant-design-vue
Steps to reproduce
- 拉取ant-design-vue@4.2.6源码,使用main分支
- 使用pnpm安装依赖
- 使用命令pnpm compile进行编译
What is expected?
- 编译时能够不报错
- 运行
https://github.com/zxywftr/testAntdOfVue.git
中的build命令时能够正常的进行构建,而不是报错error TS2742: The inferred type of 'default' cannot be named without a reference to .....
What is actually happening?
- 报错
error TS2742: The inferred type of 'default' cannot be named without a reference to '.pnpm/vue-types@3.0.2_vue@3.5.13_typescript@4.9.5_/node_modules/vue-types'. This is likely not portable. A type annotation is necessary.
- 基本上所有组件都报了这个问题, TypeScript: 2038 declaration errors, TypeScript: -1586 emit errors
- 我尝试用vite去二次封装antdv
- 引入文件后编译报错, 遂寻到antdv源码试着编译,后发现此问题
- 业务代码的最小重现在:
https://github.com/zxywftr/testAntdOfVue.git
Metadata
Metadata
Assignees
Labels
No labels
Activity