-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Configuration: automatic type acquisition for vue.js #44289
Comments
@francoisromain Can you please share some example code where these errors are showing up |
@mjbvz sure.
this makes an error on I am trying to reduce an example about the computed property error and come back quick. |
By ATA you mean you don't have Vue with typing installed in your project folder and want Vetur to work with it? |
Sorry I am new to this. Am I suppose to install vue with typing? (I thought type declaration files were automatically downloaded). I have Vetur installed and running, I am not sure to understand how Vetur and ATA split the type checking work. Do you mind explaining a bit please? Thank you |
When you install vue, you get the typing out of the box. The problem is caused by having |
Hi, You can also try turning |
Please ask your question on StackOverflow. We have a great community over there. They have already answered thousands of questions and are happy to answer yours as well. See also our issue reporting guidelines. Happy Coding! |
@HerringtonDarkholme @octref |
/** @type {HTMLElement} */ (this.$refs.name).focus(); |
@HerringtonDarkholme @octref |
@octref do you have a hint on this one: https://stackoverflow.com/questions/49201440/vs-code-cannot-find-module-vue-and-package-json ? |
Not really. Those seem to be js/ts errors. You should open a new issue. |
Hello,
I configured vs code for automatic type acquisition in a javascript / vue.js project (not typescript). This is handy most of the time, but this also shows errors on non-errors:
Property 'isLoaded' does not exist on type '() => any'. any
.refs
. Example:this.$refs.name.focus()
makes the error:Property 'focus' does not exist on type 'Vue | Element | Vue[] | Element[]'.
jsconfig.json:
Is there a way to avoid showing those non-errors as errors?
Thank you
The text was updated successfully, but these errors were encountered: