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
Generics: Cannot find name 'T'. #3164
Comments
Also when I switch to pre-release version on both extensions defineModel macro is overwriting the defineProps macro.
this gives |
Update vue to @3.3.x, vue-tsc to @1.6.x , See detail . |
@zf1998 I'm running into the same problem and have exactly the package versions you mention (vue 3.3.4 and vue-tsc 1.6.5) |
same here |
It doesn't work, please try if it works first |
Something weird about this: The extension was in takeover mode before and after too Switching back to pre-release fixes it, but I wasn't planning on actually using it, and now I seem to be stuck with it, so beware |
@Danny2462 You can't use DefineModel macro with defineProps on pre-release though, Others should know it as well so I'm gonna comment on it again here. The screenshot of the issue is here #3164 (comment) |
I update vue to @3.3.4, vue-tsc to @1.6.5, using webstorm development, manually point the typescript directory to vue-tsc. Suggest using vue-tsc to check for type errors on the command line, to help us determine if the editor plugin and vue-tsc type check results are the same |
I've created a repository with this error.
https://github.com/metkm/generic-issue
Volar versions I have installed:
Vue Language Features (Volar) v1.2.0
TypeScript Vue Plugin (Volar) v1.6.4
The text was updated successfully, but these errors were encountered: