When trying to deploy a rails 5 app to heroku, I get the following error, when it reaches Running: rake assets:precompile:
Running: rake assets:precompile
remote: ExecJS
In my case I am using angularjs-rails gem and some how used es6 standard so solve it by commenting uglifier compressor in file config/environments/production.rb.
#config.assets.js_compressor = :uglifier