Support CSS modules: Property '$style' does not exist on type
See original GitHub issue- I have searched through existing issues
Feature Request
It would be amazing if Vetur would support CSS modules using following syntax:
<template>
<div :class="[$style.button]">
Hello
</div>
</template>
<style module>
.button {
color: green;
}
</style>
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Property 'styleName' does not exist on type 'HTMLProps ...
Use @types/react-css-modules. npm install --save-dev @types/react-css-modules. Or, yarn add @types/react-css-modules --dev.
Read more >Property 'style' does not exist on type 'Element' in TS
The error "Property 'style' does not exist on type 'Element'" occurs when we try to access the style property on an element that...
Read more >How to use CSS Modules with TypeScript and webpack
It's processed by webpack as usual but you won't have type check and autocomplete for CSS class names. The better way. To use...
Read more >typescript-plugin-css-modules
This plugin provides type information to IDEs and any other tools that work with TypeScript language service plugins. At this time, TypeScript ...
Read more >style-loader
Don't do that. component.js import styles from "./styles.lazy.css"; styles ...
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
this worked to me
Add a new file in your project. You can get basic support.