-
-
Notifications
You must be signed in to change notification settings - Fork 434
Type hinting does not work in Vue SFC template part #4739
New issue
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
Comments
Reproduced in neovim too, by checking the log no error throw and can get generic vue proprieties ( To get workaround in neovim, after downgrade to 2.0.28, have also to pin volar version. see: #4706 (comment) |
yes.2.1.0 it does not support corresponding function cabinets |
+1 |
Workaround for now: Add the following to your tsconfig.compilerOptions: "paths": {
"vue/__globalTypes_3.4_false": ["node_modules/vue/__globalTypes_3.4_false.d.ts"]
} |
I also encountered this problem, I lowered the version to |
I upgraded to v2.1.2 but still encountered this issue |
v. 2.2.8 issue too |
Vue - Official extension or vue-tsc version
2.1.0
VSCode version
1.92.2
Vue version
Nuxt 3
TypeScript version
5.5.2
System Info
Steps to reproduce
After last update to v2.1.0 the typehinting / intellisense stops working in Vue SFC's template part - everything is inferred to any, even though the given references are correctly declared in
<script setup>
.What is expected?
In single previous version


2.0.28
, the opened source file looks like this:What is actually happening?
Link to minimal reproduction
No response
Any additional comments?
To note, I was using Nuxt3 at that time, and the
AccomodationCard
component was auto-imported into the SFC automatically (through autogenerated directory.nuxt
). I haven't tested this behavior on pure Vue3 setup or anywhere else.My current workaround was to specifically revert the extension to version
2.0.28
The text was updated successfully, but these errors were encountered: