rails/sass-rails

Gem Load Error is: uninitialized constant Sass::Script

nagaharish opened this issue · 0 comments

Hi,
I am getting the below mentioned error for 5.0.6 version and Rails 5.1.4. I tried all the options available on Internet but still no luck.
Can you please help me what to do on this?

/home/harish/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0.pre.2/lib/bundler/runtime.rb:86:in rescue in block (2 levels) in require': There was an error while trying to load the gem 'sass-rails'. (Bundler::GemRequireError) Gem Load Error is: uninitialized constant Sass::Script Did you mean? ScriptError Backtrace for gem load error is: /home/harish/.rvm/gems/ruby-2.4.1/gems/sass-rails-5.0.6/lib/sass/rails/helpers.rb:12:in <top (required)>'
/home/harish/.rvm/gems/ruby-2.4.1/gems/sass-rails-5.0.6/lib/sass/rails.rb:8:in require' /home/harish/.rvm/gems/ruby-2.4.1/gems/sass-rails-5.0.6/lib/sass/rails.rb:8:in <top (required)>'
/home/harish/.rvm/gems/ruby-2.4.1/gems/sass-rails-5.0.6/lib/sass-rails.rb:1:in require' /home/harish/.rvm/gems/ruby-2.4.1/gems/sass-rails-5.0.6/lib/sass-rails.rb:1:in <top (required)>'
/home/harish/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0.pre.2/lib/bundler/runtime.rb:83:in require' /home/harish/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0.pre.2/lib/bundler/runtime.rb:83:in block (2 levels) in require'
/home/harish/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0.pre.2/lib/bundler/runtime.rb:78:in each' /home/harish/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0.pre.2/lib/bundler/runtime.rb:78:in block in require'
/home/harish/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0.pre.2/lib/bundler/runtime.rb:67:in each' /home/harish/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0.pre.2/lib/bundler/runtime.rb:67:in require'
/home/harish/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0.pre.2/lib/bundler.rb:114:in require' /home/harish/projects/employee/config/application.rb:17:in <top (required)>'
/home/harish/.rvm/gems/ruby-2.4.1/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:133:in require' /home/harish/.rvm/gems/ruby-2.4.1/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:133:in block in perform'
/home/harish/.rvm/gems/ruby-2.4.1/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in tap' /home/harish/.rvm/gems/ruby-2.4.1/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in perform'
/home/harish/.rvm/gems/ruby-2.4.1/gems/thor-0.20.0/lib/thor/command.rb:27:in run' /home/harish/.rvm/gems/ruby-2.4.1/gems/thor-0.20.0/lib/thor/invocation.rb:126:in invoke_command'
/home/harish/.rvm/gems/ruby-2.4.1/gems/thor-0.20.0/lib/thor.rb:387:in dispatch' /home/harish/.rvm/gems/ruby-2.4.1/gems/railties-5.1.4/lib/rails/command/base.rb:63:in perform'
/home/harish/.rvm/gems/ruby-2.4.1/gems/railties-5.1.4/lib/rails/command.rb:44:in invoke' /home/harish/.rvm/gems/ruby-2.4.1/gems/railties-5.1.4/lib/rails/commands.rb:16:in <top (required)>'
bin/rails:4:in require' bin/rails:4:in

'
Bundler Error Backtrace:
from /home/harish/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0.pre.2/lib/bundler/runtime.rb:82:in block (2 levels) in require' from /home/harish/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0.pre.2/lib/bundler/runtime.rb:78:in each'
from /home/harish/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0.pre.2/lib/bundler/runtime.rb:78:in block in require' from /home/harish/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0.pre.2/lib/bundler/runtime.rb:67:in each'
from /home/harish/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0.pre.2/lib/bundler/runtime.rb:67:in require' from /home/harish/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0.pre.2/lib/bundler.rb:114:in require'
from /home/harish/projects/employee/config/application.rb:17:in <top (required)>' from /home/harish/.rvm/gems/ruby-2.4.1/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:133:in require'
from /home/harish/.rvm/gems/ruby-2.4.1/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:133:in block in perform' from /home/harish/.rvm/gems/ruby-2.4.1/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in tap'
from /home/harish/.rvm/gems/ruby-2.4.1/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in perform' from /home/harish/.rvm/gems/ruby-2.4.1/gems/thor-0.20.0/lib/thor/command.rb:27:in run'
from /home/harish/.rvm/gems/ruby-2.4.1/gems/thor-0.20.0/lib/thor/invocation.rb:126:in invoke_command' from /home/harish/.rvm/gems/ruby-2.4.1/gems/thor-0.20.0/lib/thor.rb:387:in dispatch'
from /home/harish/.rvm/gems/ruby-2.4.1/gems/railties-5.1.4/lib/rails/command/base.rb:63:in perform' from /home/harish/.rvm/gems/ruby-2.4.1/gems/railties-5.1.4/lib/rails/command.rb:44:in invoke'
from /home/harish/.rvm/gems/ruby-2.4.1/gems/railties-5.1.4/lib/rails/commands.rb:16:in <top (required)>' from bin/rails:4:in require'
from bin/rails:4:in `'