You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using unplugin-vue-components to auto-import components, we noticed that the generated components.d.ts only declares global components for the vue module, for example:
Yes, I have already done so, but it only recognizes file extensions in the dirs directory, and the resulting components can only be used in the vue module, which makes it impossible to directly use these components in the tsx file
Describe the bug
When using unplugin-vue-components to auto-import components, we noticed that the generated components.d.ts only declares global components for the vue module, for example:
This works well for .vue files, but in .tsx or .ts files using JSX, TypeScript still reports an error:
This plugin works great in Vue projects — we hope it can become even better with improved TSX support in the future!
Reproduction
none
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: