Error when deploying
Uglifier::Error: Unexpected token:
I will describe the solution of
config/environments/production.rb
config.assets.js_compressor = :uglifier
Edit the above description to the following description ⬇︎
config/environments/production.rb
config.assets.js_compressor = Uglifier.new(harmony: true)
Don't forget to commit push after editing!
That was the solution.