uglifier

After Ruby 2.4 upgrade - error while trying to load the gem 'uglifier' (Bundler::GemRequireError)

跟風遠走 提交于 2019-12-12 07:45:03
问题 I've just upgraded my App to use Ruby 2.4.0 without any errors during the bundling process. When I try to start my server, however, I get the following error: There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError) Gem Load Error is: wrong argument type Class (expected Module) I found in other answers on this site that you need to add gem 'therubyracer' to your Gemfile, but I already have had that since the creation of my App. The latest version of NodeJS is

Heroku push - ExecJS::RuntimeError: SyntaxError: Name expected

℡╲_俬逩灬. 提交于 2019-12-12 04:39:51
问题 I am encountering the following error when pushing to Heroku. Was working fine the other day. No major configuration changes on the commit I'm trying to push. I'm stumped at how to troubleshoot this. The Rails 5.1 application uses the following buildpacks: 1. heroku/nodejs 2. heroku/ruby I'm making use of webpacker and yarn. I think that has something to do with it but having trouble digging for more information. remote: -----> Preparing app for Rails asset pipeline remote: Running: rake