-
Notifications
You must be signed in to change notification settings - Fork 76
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
@use "sass:color" error #253
Comments
sass modules are not supported (yet?) by scssphp see #55 |
use the global function instead ( |
your report here shows the stack trace, but does not show the error message (which probably came above that) |
Yeah, i got following error:
[04-Nov-2020 13:27:43 Europe/Berlin] PHP Fatal error: Uncaught exception 'ScssPhp\ScssPhp\Exception\ParserException' with message 'parse error: failed at `background-color: color.scale($bg-color, $lightness: -$hover-val);
Thank you for your answer.
Von: Christophe Coevoet <notifications@github.com>
Gesendet: Donnerstag, 5. November 2020 17:57
An: scssphp/scssphp <scssphp@noreply.github.com>
Cc: Waldemar Scholtyssek <W.Scholtyssek@dilotec.de>; Author <author@noreply.github.com>
Betreff: Re: [scssphp/scssphp] @use "sass:color" error (#253)
but i get following error:
your report here shows the stack trace, but does not show the error message (which probably came above that)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#253 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEBXZVH7ZK5TFPVOFT74UX3SOLKNFANCNFSM4TLTJORA>.
|
hmm we might want to improve the error by failing early on |
That's weird to me. I get the parse error on I tried with this input: @use "sass:color";
a {
background-color: color.scale(#DDD, $lightness: -10%);
} |
hallo,
i want to use the color module of sass.
https://sass-lang.com/documentation/modules/color
So i do it like this:
@use "sass:color";
and then:
color.scale(#DDD, $lightness: -10%);
but i get following error:
what i'm doing wrong?
The text was updated successfully, but these errors were encountered: