Rails 5 Heroku deploy error: ExecJS::ProgramError: SyntaxError: Unexpected token: name (autoRegisterNamespace)

前端 未结 6 513
刺人心
刺人心 2021-01-07 23:01

When trying to deploy a rails 5 app to heroku, I get the following error, when it reaches Running: rake assets:precompile:

remote:        ExecJS         


        
6条回答
  •  情话喂你
    2021-01-07 23:46

    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
    

提交回复
热议问题