LoginSignup
0
0

More than 3 years have passed since last update.

Uglifier::Error: Unexpected character '`' デプロイ時のエラー解消方法

Last updated at Posted at 2020-09-18

エラー内容

ターミナルでデプロイを実行したところ、

Uglifier::Error: Unexpected character '`' 

というエラーが表示され、デプロイが完了しなかった。

解決方法

config/environments/production.rb内にある以下の記述をコメントアウトする。

production.rb
config.assets.js_compressor = :uglifier 

config/environments/production.rbファイルとは
参考: https://railsguides.jp/configuring.html

その後、コミット&プッシュで問題は解決しました。

参考

https://railsguides.jp/configuring.html
https://qiita.com/mikd/items/e10805343f2d7534d52c

0
0
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
0
0