ExecJS::ProgramError: Unexpected token punc «(», expected punc «:» when running rake assets:precompile on production

Here I found help for the same problem you had. Run rails console and: JS_PATH = “app/assets/javascripts/**/*.js”; Dir[JS_PATH].each do |file_name| puts “\n#{file_name}” puts Uglifier.compile(File.read(file_name), harmony: true) end It will show you the file and the line where the Uglifier is making the problem.