-
-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Closed
Description
Bug Type: Build
Environment
- Vue Version:
3.5.17 - Element Plus Version:
2.9.10 - Browser / OS:
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 - Build Tool:
Vite
Reproduction
Related Component
All
Reproduction Link
Steps to reproduce
I am developing a component library based on element-plus, and when packaging to generate dts files, starting from version 2.9.10, an error occurs when using ref to access element-plus components in the code. After diffing, it was found that the modification of the internal/build/src/tasks/types-definitions.ts file should be the cause. It seems that the export keywords has been removed.
我在开发一个基于element-plus的组件库,在打包生成dts文件时从2.9.10开始在代码中使用ref访问element-plus组件时会报错,diff之后发现应该是internal/build/src/tasks/types-definitions.ts文件的改动导致的。应该是去掉了export关键字。
What is Expected?
可以正常生成dts文件
What is actually happening?
error TS4082: Default export of the module has or is using private name 'TableHeader'.
error TS4082: Default export of the module has or is using private name 'TreeProps'.Additional comments
最小复现环境的链接请忽略,仅填充必填字段
Metadata
Metadata
Assignees
Labels
No labels