Gulp Compass Broke After Sass 3.4.6 Update

When my gulp launches a compass on top of my sass file, I run the following error:

error src/scss/site/style.scss (/Library/Ruby/Gems/2.0.0/gems/sass-3.4.6/lib/sass/selector/abstract_sequence.rb:96:in `block in _specificity': undefined method `specificity' for [:not(.pointer)]:Array) 

I do not know what this error means, but the file that he pointed to does not have a special source, this is just a small legitimate scss file:

 @import '../general'; .tld { color: $color-primary; } 

I also keep getting these errors in my gulp threads, this may be due to:

 [21:45:01] Ignoring psych-2.0.6 because its extensions are not built. Try: gem pristine psych-2.0.6 [21:45:01] Ignoring ffi-1.9.5 because its extensions are not built. Try: gem pristine ffi-1.9.5 

Of course, I tried the β€œpristine gem”, but it does nothing.

I don’t know what happened, all I know is that my gulpfile was the same last week and it worked flawlessly. I installed OSX Yosemite and did nothing special.

I know that there is not enough material in my description, but this is because I have no clue where to look for a solution, because I do not understand the error.

+5
source share
3 answers

Well, I blamed the OSX Yosemite update, but that was wrong. I also updated my gems and it looks like my sass update to 3.4.6 has broken. Decreasing to 3.4.5 does the job:

 sudo gem uninstall sass sudo gem install sass --version 3.4.5 
+7
source

This worked for me without dropping anything:

 gem pristine --all 

Ref: http://guides.rubygems.org/command-reference/#gem-pristine

0
source

SASS 3.4.5 will fix this:

 sudo gem install sass --version 3.4.5 

It is also recommended that you switch to using node-sass , as libsass bindings are much cleaner.

0
source

Source: https://habr.com/ru/post/1205124/


All Articles