-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
Module $style doesn't contain mixins classes or "&name" classes #157
Comments
This is a design limitation. If we need to calculate all valid class names, this will be a compiler level job for each style language. (css, scss, less) And class name renaming feature can't not working on this case. I suggest you use a single style block to shims the css module types. <style module>
// you original styles
</style>
<style module>
.chevronUp { }
.chevronDown { }
// ...
</style> |
I found that |
Fixed in 0.24.2. |
For example if I have this code in my style tag (
scss, module
):Type checking for
$style
fails because it doesn't contain the classchevronUp
.This also applies to global mixins and mixins in general. We have
@import "@/styles/_imports.scss"
in ouradditionalData
for scss inside Vite config and import them like:If mixing contains a class or classes, they don't appear inside
$style
variable. Right now I useuseCssStyle
in mysetup
method to bypass that, but that's not ideal.The text was updated successfully, but these errors were encountered: