Tag: ruby 2.4

Ruby 2.4升级后 – 尝试加载gem’uglifier’时出错(Bundler :: GemRequireError)

我刚刚升级我的应用程序以使用Ruby 2.4.0在捆绑过程中没有任何错误。 但是,当我尝试启动我的服务器时,出现以下错误: There was an error while trying to load the gem ‘uglifier’. (Bundler::GemRequireError) Gem Load Error is: wrong argument type Class (expected Module) 我在这个网站上的其他答案中发现你需要在你的Gemfile中添加gem ‘therubyracer’ ,但是自从创建我的应用程序以来,我已经有了这个。 最新版本的NodeJS也安装在我的机器上。 有没有其他人遇到这个错误,知道如何解决它? Gemfile中的uglifier配置:gem’uglifier gem ‘uglifier’, ‘~> 3.0.4’ 全栈跟踪: /home/severin/.rvm/gems/ruby-2.4.0/gems/activesupport-5.0.1/lib/active_support/xml_mini.rb:51: warning: constant ::Fixnum is deprecated /home/severin/.rvm/gems/ruby-2.4.0/gems/activesupport-5.0.1/lib/active_support/xml_mini.rb:52: warning: constant ::Bignum is deprecated /home/severin/.rvm/gems/ruby-2.4.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:21: warning: constant ::Fixnum is deprecated /home/severin/.rvm/gems/ruby-2.4.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:94:in […]