Why does the compass clock say that it cannot load sass / script / node (LoadError)?

I had a problem with my compass watch team - it worked fine until a few days ago. I have not made any changes to my configuration files.

I reinstalled Compass, used rvm to update Ruby. I checked the custom_require.rb file, but I really don't know what to look for. It seems to be trying to load the "sass / script / node" file somewhere, and from http://sass-lang.com/docs/yardoc/Sass/Script/Node.html I am collecting the file path, but I have there there is nothing.

 /Users/sampurcell/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require': cannot load such file -- sass/script/node (LoadError) from /Users/sampurcell/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require' from /Users/sampurcell/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require' from /Users/sampurcell/.rvm/gems/ruby-1.9.3-p194/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1:in `<top (required)>' from /Users/sampurcell/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' from /Users/sampurcell/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' from /Users/sampurcell/.rvm/gems/ruby-1.9.3-p194/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:2:in `block in <top (required)>' from /Users/sampurcell/.rvm/gems/ruby-1.9.3-p194/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `each' from /Users/sampurcell/.rvm/gems/ruby-1.9.3-p194/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `<top (required)>' from /Users/sampurcell/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' from /Users/sampurcell/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' from /Users/sampurcell/.rvm/gems/ruby-1.9.3-p194/gems/compass-0.12.2/lib/compass/sass_extensions.rb:9:in `<top (required)>' from /Users/sampurcell/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' from /Users/sampurcell/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' from /Users/sampurcell/.rvm/gems/ruby-1.9.3-p194/gems/compass-0.12.2/lib/compass.rb:5:in `block in <top (required)>' from /Users/sampurcell/.rvm/gems/ruby-1.9.3-p194/gems/compass-0.12.2/lib/compass.rb:4:in `each' from /Users/sampurcell/.rvm/gems/ruby-1.9.3-p194/gems/compass-0.12.2/lib/compass.rb:4:in `<top (required)>' from /Users/sampurcell/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' from /Users/sampurcell/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' from /Users/sampurcell/.rvm/gems/ruby-1.9.3-p194/gems/compass-0.12.2/bin/compass:20:in `block in <top (required)>' from /Users/sampurcell/.rvm/gems/ruby-1.9.3-p194/gems/compass-0.12.2/bin/compass:8:in `fallback_load_path' from /Users/sampurcell/.rvm/gems/ruby-1.9.3-p194/gems/compass-0.12.2/bin/compass:19:in `<top (required)>' from /Users/sampurcell/.rvm/gems/ruby-1.9.3-p194/bin/compass:19:in `load' from /Users/sampurcell/.rvm/gems/ruby-1.9.3-p194/bin/compass:19:in `<main>' from /Users/sampurcell/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval' from /Users/sampurcell/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>' 

Does anyone have any idea?

+69
ruby rubygems compass-sass
Jun 01 '13 at 20:36
source share
11 answers

Uninstall sass and reinstall it with the following:

 gem uninstall sass gem install sass 

There was a problem with my sass installation, and this fixed the problem.

+113
Jan 07 '14 at 16:17
source share

In my case, the version of Sass was not compatible with Compass.

CORRECTION:

  • remove Sass AND Compass

     gem uninstall compass gem uninstall sass 
  • install Compass , which will automatically install a compatible Sass engine

     gem install compass 
+24
May 22 '14 at
source share

This combination finally works for me to combine Compass and SASS Sourcemaps:

Gemfile

 gem 'sass', '3.3.0.alpha.149' gem 'compass', '0.12.2' gem 'compass-sourcemaps', "~> 0.12.2.sourcemaps.57a186c" 

Compass config.rb

 sass_options = {:sourcemap => true} 
+13
Jul 24 '13 at 9:34 on
source share

This particular version works well on both:

 gem 'sass', '3.3.0.alpha.149' gem 'compass', '0.12.2' 

They may not be compatible with each other in why you get these errors (given that you are using a short release version).

+10
Jun 30 '13 at 20:11
source share

If you are using Ubuntu, this can be a problem when apt-get and rvm collide.

Try removing rvm with rvm implode and then run

 sudo apt-get install ruby-compass 

compass watch worked for me after that.

+4
Jan 08 '14 at 8:25
source share

The difference in the answers above: for me (using Bootstrap for Sass) it turned out that

 gem install bootstrap-sass 

what was needed to fix this problem. For me, the LoadError issue with Compass started after I updated the version of Ruby that I used.

+3
Feb 18 '14 at 11:02
source share

I believe this is due to version conflicts with sass.

https://rubygems.org/gems/compass gem is currently in v0.12.16 at present - add this to the Gemfile

 gem 'sass', '3.2.19' gem 'compass', '0.12.6' 

You may need to first remove all versions of both gems.

+3
Jul 01 '14 at 2:35
source share

I was able to fix it by doing this

 gem uninstall sass gem install sass -v 3.2.12 

This is definitely due to a version dependency problem, you better solve your problem so that it is compatible with new versions of saas, compass, etc.

+2
Oct 06 '14 at 15:38
source share

The following combinations worked for me:

 gem install compass --pre gem install sass -v 3.3.3 
0
Apr 6 '14 at 15:05
source share

I needed to install a gemfile with the correct versions (this error was caused by inappropriate versions of SASS and Compass for me). I used the following bundle install code to fix the problem:

 source "https://rubygems.org" gem 'bootstrap-sass', "~> 3.2.0" gem 'sass', [ "< 3.5" , ">= 3.3.13" ] gem 'compass', "~> 1.0.1" gem 'compass-core', "~> 1.0.1" gem 'compass-import-once', "~> 1.0.5" gem 'chunky_png', "~> 1.2" gem 'rb-fsevent', ">= 0.9.3" gem 'rb-inotify', ">= 0.9" 
0
02 Sep '14 at 6:31
source share

I had the same problem and I realized that I have two versions of the compass, so:

compass watch or compass compile

The compiler did not know which version of the compass should be used for compilation. So what you can do is explicitly specify the compass version to work with:

compass _1.0.3_ watch

Another interesting stream .

0
Aug 02 '16 at 13:41
source share



All Articles