adding properties inside a component breaks the known data and computed props and says Property 'x' does not exist on type 'CombinedVueInstance<Vue, object, object, object, Record<never, any>>'.Vetur(2339)

this can be a potential issue on next release of vscode maybe ?
Use veturpack and newest vscode-insiders
I can confirm it works properly with current stable release of vscode
it seems to be fixed now (probably vscode's fault)
I've been searching for information on this problem for two days now. This is _EXACTLY_ what is happening to me and it is quite annoying. As far as I can tell everything works OK, just lots of ugly red squigglies in my source. See my environment at the bottom of this post. I believe I have the latest of everything.
I see that the latest post here (prior to this one), on 2020-07-09, shows that the problem apparently still exists (for @mamedun). I also see it says CLOSED next to his post. This is all new to me (posting to GitHub) so not sure if his post was explicitly closed or implicitly closed because the thread was closed on 2020-04-15 by @jd1378. I guess I will probably find out as soon as I click green "Comment" button.
Here is my error: (oh, and I get this error in exactly the way the demo screenshot above shows)
[Property 'myProperty' does not exist on type 'CombinedVueInstance
macOS Catalina (10.15.5)
VS Code: 1.48.1 (Update says this is the latest)
Vetur: 0.26.1 (should I fall back to version 0.24?)
Not sure why this is closed unless it is (no longer) an issue on Windows
Setting "vetur.experimental.templateInterpolationService" to false solved this issue for me.
If you are having computed properties, you would need to annotate them (with JSDocs): https://vuejs.org/v2/guide/typescript.html#Annotating-Return-Types
Otherwise TypeScript is unable to infer this type.
Even though you are writing JS, Vetur is using TS to support it.
Weird, this just started happening to me today. MacOS Catalina. Setting vetur.experimental.templateInterpolationService like @red-meadow suggested doesn't work for me. It was disabled already, and toggling doesn't seem to have any effect.
I wonder what has changed where to cause this...
me too
There is a new setting called vetur.validation.interpolation in 0.27.
Description:
Validate interpolations in region using TypeScript language service
Having this issue as well, vetur.experimental.templateInterpolationService was disabled. Code works perfectly fine, but the code minimap gets lit up like a Christmas tree. At least it's in season I guess.
disable vetur.validation.interpolation . Waring is not show, but hint is not work :disappointed:
If you are having computed properties, you would need to annotate them (with JSDocs): https://vuejs.org/v2/guide/typescript.html#Annotating-Return-Types
Otherwise TypeScript is unable to infer
thistype.
Even though you are writing JS, Vetur is using TS to support it.
I was having troubles with this as well. I solved it following what they sent i.e. by annotating the return type of computed properties.
Setting "vetur.validation.script" to false solved this issue for me.
Change to false "vetur.validation.script" solved for me. Thanks.
Setting "vetur.validation.script" to false solved this issue for me.
This seemed to solve to squiggly lines.
But the intellisense is still missing for me until I write this.$xyz.
You can't disable validation and still have intellisense. Those go together.
Enable validation and fix type issues instead. How? It depends on your code but typically you have to add type annotations in various places.
Also see https://github.com/vuejs/vetur/blob/master/docs/guide/FAQ.md#property-xxx-does-not-exist-on-type-combinedvueinstance
@rchl
Oh I didn't knew that
But I am facing the error in my script tag
Doing Object.keys(context) in asyncData shows that I have the $axios hook present, but doing context.$ shows no types
But by destructuring {$axios} and using this.$axios. shows intellisense again
It weird why my types arent working
Types is not a runtime thing. What you see at runtime is not gonna match types if you don't have types set up properly.
That's not a problem related to Vetur. Please ask for help in Nuxt discord, for example (https://discord.com/invite/ps2h6QT).

I restart my computer for n times :<, tried all you guy say and nothing seems work :<
Most helpful comment
There is a new setting called
vetur.validation.interpolationin 0.27.Description: