We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto imports don't work in the script setup template without the options API, I am guessing that this is because export default
setup
export default
Vue components are not registered inside auto-imports.d.ts without export default defineComponent({});
export default defineComponent({});
example is in here
CompA is registered while CompB is not
CompA
CompB
also sometimes you need to restart vite server after adding/removing export default defineComponent({});
https://stackblitz.com/edit/vitejs-vite-wb25xu
System: OS: macOS 14.4 CPU: (10) arm64 Apple M1 Pro Memory: 90.45 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node npm: 8.19.2 - ~/.nvm/versions/node/v18.12.1/bin/npm pnpm: 9.1.0 - ~/.nvm/versions/node/v18.12.1/bin/pnpm Browsers: Brave Browser: 124.1.65.133 Chrome: 125.0.6422.113 Edge: 125.0.2535.79 Safari: 17.4 Safari Technology Preview: 17.4
npm
The text was updated successfully, but these errors were encountered:
Start a new pull request in StackBlitz Codeflow.
Sorry, something went wrong.
No branches or pull requests
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: