・ Ruby: 2.5.7 Rails: 5.2.4 ・ Vagrant: 2.2.7 -VirtualBox: 6.1 ・ OS: macOS Catalina
The following error occurs when deploying with Capistrano
Terminal
deploy:assets:precompile
01 $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile
01 rake aborted!
01 Uglifier::Error: Unexpected character '`'
It was caused by the backticks (`) of the template literal that was written in the JavaScript file.
Comment out line 27 of production.rb
.
production.rb
# config.assets.js_compressor = :uglifier
Recommended Posts