-
-
Notifications
You must be signed in to change notification settings - Fork 438
Cannot recognize custom components and show error #4841
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
Could you provide a minimal reproduction for it? |
@KazariEX here is a demo for you ![]() |
This is a known limitation, we deliberately do not support decorators to avoid overly complex code. However, since I don't know if it can obtain the correct type (or |
@KazariEX |
How about |
@KazariEX Better name than mine! |
This is an existing feature, you can configure it in your "vueCompilerOptions": {
"skipTemplateCodegen": true
} |
Could you tell me if using components imported with decorators in template before 2.1 can obtain the correct types? |
The answer is No. I thought it's a limitation of vue2 or whatever at the first time and ignore this inconvenience. As for the |
This is what I want to know, If we just infer it as |
Seems like our opinions finally come up together, hope ur update as soon as posible. I have to use version 2.0.x for a while. |
Vue - Official extension or vue-tsc version
Vue - Official extension
VSCode version
1.93.0
Vue version
2(with vue-class-component)
TypeScript version
3.9.10
System Info
package.json dependencies
Steps to reproduce
What is expected?
shows normal with the tag of custom component.
What is actually happening?
shows error with every tag of the custom component.
errors look like: XXX does not exist on type 'Required<{} & __VLS_WithComponent .... ts-plugin(2339).
Link to minimal reproduction
No response
Any additional comments?
it happends when I update the extension to version 2.1.x, and disappears using version 2.0.x.
The text was updated successfully, but these errors were encountered: