variables from mixins not recognized in component template
See original GitHub issueInfo
- Platform: Linux
- Vetur version: 0.19.0
- VS Code version: 1.33.1
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
- create a
base
component with a data and/or computed variable - create a
extends
component that uses the basecomponent
as a mixin - use variable/computed in template of
extends
component
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Global variables and mixins does not available inside ...
Hi. I our project we are using event buss (mitt) as a global variable and I want to emit some data from the...
Read more >Sass global variables and mixins not working - Stack Overflow
When I try to access any global variable or mixin from within any vue component, I get an undefined error. This problem doesn't...
Read more >mixin and @include - Sass
Mixins allow you to define styles that can be re-used throughout your stylesheet. They make it easy to avoid using non-semantic classes like...
Read more >How to Use Mixins in Sass and Pass Arguments – With Code ...
They make it easy to avoid using non-semantic classes like .float-left , and to ... Here's an example of using a mixin in...
Read more >Getting started | Less.js
Less extends CSS with dynamic behavior such as variables, mixins, operations and functions. Less runs on both the server-side (with Node.js and Rhino)...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can also do
vetur.validation.template: false
orvetur.experimental.templateInterpolationService: false
FYI: If you want to type mixins, you may want to use this. https://github.com/ktsn/vue-typed-mixins