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
sass-loader can't resolve :global or :local on css-module on .sass extension #448
Comments
@jarindr |
@evilebottnawi Yes i get that, unfortunately It isn't working with sass-loader with .sass extension {
test: /\.sass$/,
use: [{
loader: 'style-loader'
}, {
loader: 'css-loader',
options: {
modules: true,
localIdentName: '[name]-[local]-[hash:base64]'
}
},
{
loader: 'postcss-loader'
}, {
loader: 'sass-loader'
}]
}, |
@jarindr please create minimal reproducable test repo, we will not help you if you do not provide information, good issue - issue with detailed information, not empty 👍 |
@jarindr and seems sass syntax don't allow using |
@evilebottnawi you just answered too fast lol i'm editing and accidentally click submit. So, if that is the case, any solution for using sass with some global scope ? |
@jarindr seems works good in https://www.sassmeister.com/ and support |
weird, all |
@evilebottnawi Found the problem, for .sass you need to escape |
@jarindr Great! 👍 |
escaping is possible using |
Why is that we do not have to escape when using |
@jpap Are you able to get
This isn't working for me with or without the |
@thomashibbard what worked for me was something like:
|
I'm running into this same issue. Escaping with
|
have the same issue with CRA v3 and sass-loader inside of it |
It seems that dart sass complains about
|
:global
and:local
isn't working with sass-loader with .sass extensionI tried to switch to less and stylus loader and it works perfectly. Not sure this is my fault in configuration ? or just sass syntax doesn't allow
:global
and:local
SOLUTION: If anyone get this problem,
/:global
will fix the problem.The text was updated successfully, but these errors were encountered: