-
Notifications
You must be signed in to change notification settings - Fork 464
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
CSS-Modules do not work anymore after update to node-sass 4.0.0 #2245
Comments
This project is an implementation of the Sass language. Our goal is to be 100% compatible with Sass. We're closing this issue since Ruby Sass produces the same output. In the future please confirm that LibSass' output differs from Ruby Sass before opening an issue. If you wish to suggest features of file bugs in the Sass language please open an issue with Sass - https://github.com/sass/sass |
It was compiling with LibSass because of a bug that has been patched. This code is not valid Sass and should never have compiled. You can confirm this by testing your code with Ruby Sass.
The Ruby Sass error message is much better than ours and suggests a work around. In order to get this behaviour changed you'd need to open a feature request with Ruby Sass |
It's noting that the CSS module syntax is valid in with the scss format
|
@xzyfer Do you know why |
@jhnns there are a couple different elements in play here. The OP is using the old indented syntax. :global
.my-global-class-name
background-color: red In that syntax On the other hand the newer scss syntax guarantees to (mostly) be a super set of CSS. For this reason |
@delijah I was able to get this working again after upgrading by escaping the colon i.e. \:global
.my-global-class-name
background-color: red |
@mattfysh I can confirm this. Using a "\" solves the problem. Now my sass-linter doesn't like it ;) I will open an issue for that. |
Before updating (node-sass 1.13.1), the following worked without any problems:
input.sass
Now i get the following error:
version info:
npm -v
): 3.10.3node -v
): 6.7.0node -p process.versions
):{ http_parser: '2.7.0',
node: '6.7.0',
v8: '5.1.281.83',
uv: '1.9.1',
zlib: '1.2.8',
ares: '1.10.1-DEV',
icu: '57.1',
modules: '48',
openssl: '1.0.2j' }
node -p process.platform
): darwinnode -p process.arch
): x64node -p "require('node-sass').info"
):node-sass 4.0.0 (Wrapper) [JavaScript]
libsass 3.4.0 (Sass Compiler) [C/C++]
npm ls node-sass
): [email protected]The text was updated successfully, but these errors were encountered: