-
Notifications
You must be signed in to change notification settings - Fork 842
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 not compiling #1825
Comments
Just so that I'm clear in how to respond to this one. Is this about not being able to compile? Or that you're not seeing the full error in your terminal when you use an incorrect breakpoint size? Sounds like the latter? |
This is the result of me simply importing the stylesheets into my project and doing nothing else, breakpoint and all that should be set by what's imported from
The warning message doesn't escape the line-break and the file doesn't compile correctly, resulting in the somewhat cryptic error message I posted above. When adding an escaped line-break, as shown in the example above, stylesheets compiles. I.e. the breakpoints are set but the file doesn't compile because you can have unescaped line-breaks in |
Solution that worked for me was: } @else {
+ @warn "euiBreakpoint(): '#{$size}' is not a valid size in $euiBreakpoints.\nThe acceptable values are '#{$euiBreakpointKeys}'";
- @warn "euiBreakpoint(): '#{$size}' is not a valid size in $euiBreakpoints.
- The acceptable values are '#{$euiBreakpointKeys}'";
} Hence:
|
A quick search shows that Sass does not support multiline strings, it [perhaps errantly] did in the past, and some implementations/parsers still do. We should correct our usage here as suggested. @johansedgeware what library & version are you using to compile the sass? |
I'm using "sass": "^1.18.0" Seems to be this one on github! |
Just a minor typo
The error is in this else clause.
Fix:
The text was updated successfully, but these errors were encountered: