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
I think you may have misunderstood the intention of this package. Its purpose is to allow exported JS functions, consts, etc. from other files to be auto-imported within Vue etc. components -- not the other way around.
Describe the bug
Auto imports don't work in the script
setup
template without the options API, I am guessing that this is becauseexport default
Vue components are not registered inside auto-imports.d.ts without
export default defineComponent({});
example is in here
CompA
is registered whileCompB
is notalso sometimes you need to restart vite server after adding/removing
export default defineComponent({});
Reproduction
https://stackblitz.com/edit/vitejs-vite-wb25xu
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: