-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
SCSS files are not compiled when being imported from CSS files #11837
Comments
There is a problem with your code in /* wrong code @import './variables'; */
@import './_variables.scss'; Need to complete the suffix and fix file name. |
First of all, this doesn't match Sass's import behaviour. And second, there's still an issue of Sass code being injected into CSS without any compilation. |
i have this error, the varaibles are not recognize, but only happens in qwik i will put my example here. https://github.com/LuisCoderDev/qwik-scss also changing te imports with underscore and .scss still doenst work for me |
I'm having the same issue as well, I troubleshoot this for weeks and still haven't find the solution. the error looks like this:
But the actual issue was caused by my |
Describe the bug
When I'm trying to import an SCSS file from a CSS file, I see either:
This makes me suspect that SCSS imports from CSS aren't being transformed properly.
Reproduction
https://stackblitz.com/edit/vitejs-vite-rrleev?file=styles/button.scss
Steps to reproduce
No response
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: