`rescue in block (2 levels) in require': There was an error while trying to load the gem 'sass-rails'. (Bundler::GemRequireError)

不打扰是莪最后的温柔 提交于 2019-12-12 04:22:22

问题


I finish to install rails 5 at my ubuntu system(16.04.2 LTS) and I'm with this error when I try to run rails server command.

`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

When I write bundle update, the prompt show me this message:

The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.

and then it update well ... and show ~≳ Using sass-rails 5.0.6

Please help-me guys, regards!

来源:https://stackoverflow.com/questions/42683402/rescue-in-block-2-levels-in-require-there-was-an-error-while-trying-to-load

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!