failed to push some refs to git@heroku.com

后端 未结 27 2309
野性不改
野性不改 2020-12-02 10:10

I am getting this error when I am trying push my files into heroku rep.

Ive set autocrlf = false already in gitconfig but this problem is still there. i have also tr

27条回答
  •  Happy的楠姐
    2020-12-02 10:17

    Another issue could come from the use of backticks, those are not supported by the compiler (uglifier).

    To fix it, replace config.assets.js_compressor = :uglifier with config.assets.js_compressor = Uglifier.new(harmony: true).

    credits: https://medium.com/@leog7one/how-to-fix-execjs-runtimeerror-syntaxerror-unexpected-character-on-heroku-push-deployment-c0b105a64655

提交回复
热议问题