-
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
More 'Duplicate key in map' errors #1296
Comments
Probably the same issue as this: #1283 The keys |
Oh, that does sound like it. Should i close this in favour of the other one? |
It sounds like @davidkpiano is right, but without an actual test case I unfortunately cannot tell you if it really fixes your issue. Can you provide a shortened and compilable (with ruby sass) example? |
Is this OK?
|
I can confirm it's the same issue, altough it exhibits a little different behavior. Had to update the hash function to something more sophisticated to get this passing too. |
Merging this into #1283 |
just following the thread, just want to ask how did you fix this issue? |
@thebestako35 there are some explanations in #1283 (changed the hashing function for these objects) |
sorry just newbie in sass , can you enlight me with this code issue |
im using gulp to compile my scss |
@thebestako35 you need to wait until we ship 3.3. As a work around for now you should be able to quote the map keys. |
This is a 3.3 feature that hasn't been released yet. |
can you tell me what will be the work around for this issue? |
It's different depending on the case. Usually quoting your keys will fix it. Alternatively don't use keys that that are also colours. |
In the release notes for 3.2.4 and 3.2.5 i noticed several fixes for duplicate map key handling (#1187, #1195, and #1254). I was having an issue with 3.2.1 (the most recent stable version in Homebrew), so i thought that upgrading to the latest (libsass
b078
and sassc9d61
) would fix it — unfortunately it hasn't. The issue i'm running into is this:I'm trying to experiment with the
legacy-direction()
function described in this article. Having added it to my project, i find that it works fine when i compile with the Ruby-basedsass
, butsassc
fails. The error i get is:To clarify, this is the map it's having problems with:
I've only recently started using SASS, so maybe i'm misunderstanding something here — but the fact that the Ruby version compiles makes it seem like a bug?
The text was updated successfully, but these errors were encountered: