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

前端 未结 6 557
刺人心
刺人心 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-07 23:44

    I had this issue and it was throwing Uglifier::Error: Unexpected token: name (subscription)

    It ended up being an actual syntax error.

    I accidentally had left the words "cancel subscription" in one of my JS files and it was causing it to throw that error

提交回复
热议问题