-
Notifications
You must be signed in to change notification settings - Fork 468
Compiler error: argument $color
of lightness($color)
must be a color
#2015
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
Comments
Duplicate of #1969 (found via search - please try to use it before opening new issues) and already fixed! |
I apologize, the function does not contain that typo in the source. It must have occurred when I was copy pasting it, so it contains the extra brace. However, the problem still persists in libsass 3.3.5, which fixes issue #1969. the correctly edited and entire function, for reference:
|
I'm sorry, but I cannot reporoduce it |
I only receive this error when compiling with node-sass or sass.js builds based on libsass 3.3.1 or higher. I've spoken to the sass.js developer about this issue persisting in the latest release, but he was confident that the error was being thrown by libsass. Is there anything else I can provide to help you reproduce the bug? |
@emyarod how are you calling this function that produce the error? |
I'm using this function to style an element's text color based on its background color. In this instance, I'm styling buttons, whose background colors are first assigned in a Sass map and then passed into the Here is the referenced portion in
If more context is required, here is the source for Please let me know if any additional information is needed! |
I would suggest to try to compile it with official ruby sass as it yields the same error! |
When compiling using the official Ruby Sass compiler, this error is thrown:
|
Uh oh!
There was an error while loading. Please reload this page.
It seems that libsass 3.3.3 or higher throws an error when passing a color into this a function I've written:
Error:
the function in question:
However, when I compile my Sass source files in node-sass 3.4.2 (which uses libsass 3.3.2), or if I compile using sass.js 0.9.4 (which uses libsass 3.3.1), everything compiles fine.
The text was updated successfully, but these errors were encountered: