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

前端 未结 6 571
刺人心
刺人心 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:52

    Seems to be some issues with newer ES syntax. Backtick's also won't pre-compile.

    my example:

    http://localhost:3000//${bike_file}.html

    I changed to

    "http://localhost:3000//" + bike_file + ".html"

提交回复
热议问题