vuejs / vetur

Vue tooling for VS Code.
https://vuejs.github.io/vetur/
MIT License
5.75k stars 593 forks source link

variables from mixins not recognized in component template #1232

Open dpatwp opened 5 years ago

dpatwp commented 5 years ago

Info

Problem

Since the last release of Vetur html template no longer uses values from mixins

example error in template where mixin has data.config Property 'config' does not exist on type 'CombinedVueInstance...'.

Reproducible Case

octref commented 5 years ago

That's correct, there's no support for mixin yet. It's not easy to do this...

dasDaniel commented 5 years ago

I guess roll-back to 0.18.1 for now if needed

octref commented 5 years ago

You can also do vetur.validation.template: false or vetur.experimental.templateInterpolationService: false

ktsn commented 5 years ago

FYI: If you want to type mixins, you may want to use this. https://github.com/ktsn/vue-typed-mixins

ClausClaus commented 5 years ago

I am using mac. After I upgraded to the latest vscode, I also encountered this problem. Now, whether I downgrade to 1.3.1 or use vetur0.18.1, the properties of mixins are always unrecognizable. . .

octref commented 5 years ago

Related to #1156

boneus commented 2 years ago

You can also do vetur.validation.template: false or vetur.experimental.templateInterpolationService: false

Hm, I tried that and I still get errors regarding a property not being on type. I'm not using TypeScript.

Also, where can I find all the settings Vetur supports?