Tag: uglifier

Heroku push – ExecJS :: RuntimeError:SyntaxError:期望的名称

我推送到Heroku时遇到以下错误。 前几天工作正常。 我正试图推送的提交没有重大配置更改。 我很难过如何解决这个问题。 Rails 5.1应用程序使用以下buildpack: 1. heroku/nodejs 2. heroku/ruby 我正在使用webpacker和纱线。 我认为这与它有关,但无法挖掘更多信息。 remote: —–> Preparing app for Rails asset pipeline remote: Running: rake assets:precompile remote: yarn install v0.27.5 remote: [1/4] Resolving packages… remote: [2/4] Fetching packages… remote: warning fsevents@1.1.2: The platform “linux” is incompatible with this module. remote: info “fsevents@1.1.2” is an optional dependency and […]

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 […]