-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 compilation error #2213
Comments
I think this is happening due to a mixin invocation we lifted to What version of sass or node-sass are you running? |
I've reproduced this error with the steps above using |
I was using |
Ah I see, I can reproduce this with the Sass ruby gem, but wasn't able to reproduce it via node-sass. Working on a fix now that I know how to test whether it's broken. |
I have PR #2238 out to fix this for our next release. In the interim, a couple of other options:
|
The PR works great for me. Thank you for your help! |
I have just experienced the same issue with most of the _mixins in material-design. Just to reference one of them: Installed node-sass version: So basically this is a compiler issue? This error occured the moment I was trying to theme my components. When I import mixins. |
What MDC Web Version are you using?
What browser(s) is this bug affecting?
N/A - sass build error.
What OS are you using?
Red Hat Enterprise Linux Workstation release 7.3 (Maipo)
What are the steps to reproduce the bug?
produces the following stack trace:
Error: Base-level rules cannot contain the parent-selector-referencing character '&'.
on line 52 of /shared/bonus/node_modules/@material/checkbox/_mixins.scss, in `mdc-checkbox-container-colors'
from line 34 of /shared/bonus/node_modules/@material/checkbox/mdc-checkbox.scss
from line 20 of /shared/bonus/node_modules/material-components-web/material-components-web.scss
from line 1 of test.scss
Use --trace for backtrace.
What is the expected behavior?
Should produce a .css file from the sass with custom primary color.
What is the actual behavior?
produces sass error and no .css file is created.
Any other information you believe would be useful?
The text was updated successfully, but these errors were encountered: