Closed RayGuo-ergou closed 1 month ago
Could you provide what type conflict will be caused?
Error:
Definitions of the following identifiers conflict with those in another file: VLS_IntrinsicElements, __VLS_Element, VLS_GlobalComponents, VLS_IsAny, __VLS_PickNotAny, VLS_intrinsicElements, VLS_SelfComponent, __VLS_WithComponent, VLS_FunctionalComponentProps, VLS_UnionToIntersection, __VLS_OverloadUnionInner, VLS_OverloadUnion, VLS_ConstructorOverloads, __VLS_NormalizeEmits, VLS_PrettifyGlobal [6200]
This conflict because these types are auto-generated by the Volar language server. When a library declares same types, it results in naming conflicts.
This issue is still present with 4.0.0-beta.2 and the above reproduction.
While certainly not minimal, I also have an end-to-end reproduction of the issue. See https://github.com/DerYeger/yeger/actions/runs/10174119328/job/28139332486#step:4:1227.
Describe the bug
Volar generated types like
__VLS_Element
will be declared in built files.This happens on version
^4.0.0
I am guessing it's caused by upgradingvue-tsc
?This will cause type conflict when import the library.
Reproduction
https://github.com/RayGuo-ergou/dts-reproduction
Steps to reproduce
System Info
Validations