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
I had this issue and it was throwing Uglifier::Error: Unexpected token: name (subscription)
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