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
Hi,
I have noticed that Intellisense is not working in template under two conditions:
with script setup (even if empty):
without script setup:
The text was updated successfully, but these errors were encountered:
This is expected, Volar intellisense supports base on defineComponent, if you don't have, you can use experimentalImplicitWrapComponentOptionsWithDefineComponent option to tell Volar auto wrap component options by defineComponent.
experimentalImplicitWrapComponentOptionsWithDefineComponent
defineComponent
tsconfig.json / jsconfig.json
tsconfig.json
jsconfig.json
{ "compilerOptions": { // ... }, "vueCompilerOptions": { "experimentalImplicitWrapComponentOptionsWithDefineComponent": true }, "include": ["src/**/*.js", "src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue"] }
Sorry, something went wrong.
feat: enabled `experimentalImplicitWrapComponentOptionsWithDefineComp…
7d257ed
…onent` by default for `lang="js"` close #1298
组件中,props不使用defineProps的形式还是会出现这个问题
No branches or pull requests
Hi,
I have noticed that Intellisense is not working in template under two conditions:
with script setup (even if empty):

without script setup:

The text was updated successfully, but these errors were encountered: