LoginSignup
23
8

More than 5 years have passed since last update.

Railsでherokuに上げた時に「Uglifier::Error: Unexpected token: operator」のエラー

Posted at
config/environments/production.rb

config.assets.js_compressor = :uglifier
↓↓↓これに変える
config.assets.js_compressor = Uglifier.new(harmony: true)

参考
Uglifier::Error: Unexpected token: punc ((). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true)

23
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
23
8