We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have in environments/production.rb:
config.assets.js_compressor = Uglifier.new(harmony: true)
$ RAILS_ENV=production bundle exec rake assets:precompile --trace ** Invoke assets:precompile (first_time) ** Invoke assets:environment (first_time) ** Execute assets:environment ** Invoke environment (first_time) ** Execute environment ** Invoke yarn:install (first_time) ** Execute yarn:install Yarn executable was not detected in the system. Download Yarn at https://yarnpkg.com/en/docs/install ** Execute assets:precompile rake aborted! Uglifier::Error: Unexpected token: name (newline) /usr/local/bundle/gems/uglifier-4.1.20/lib/uglifier.rb:234:in parse_result' /usr/local/bundle/gems/uglifier-4.1.20/lib/uglifier.rb:216:in run_uglifyjs' /usr/local/bundle/gems/uglifier-4.1.20/lib/uglifier.rb:168:in compile' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/compressing.rb:65:in block in js_compressor=' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/legacy_proc_processor.rb:31:in call' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in call_processor' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in block in call_processors' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in reverse_each' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in call_processors' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in load_from_unloaded' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in block in load' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in fetch_asset_from_dependency_cache' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in load' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in block in initialize' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in load' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in find_asset' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:in find_all_linked_assets' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:142:in block in find' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:114:in block (2 levels) in logical_paths' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:228:in block in stat_tree' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:212:in block in stat_directory' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in each' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in stat_directory' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:227:in stat_tree' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in each' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in block in logical_paths' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in each' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in logical_paths' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:140:in find' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in compile' /usr/local/bundle/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:in block (3 levels) in define' /usr/local/bundle/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in with_logger' /usr/local/bundle/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in block (2 levels) in define' /usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:271:in block in execute' /usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:271:in each' /usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:271:in execute' /usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:213:in block in invoke_with_call_chain' /usr/local/lib/ruby/2.5.0/monitor.rb:226:in mon_synchronize' /usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:193:in invoke_with_call_chain' /usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:182:in invoke' /usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:160:in invoke_task' /usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:116:in block (2 levels) in top_level' /usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:116:in each' /usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:116:in block in top_level' /usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:125:in run_with_threads' /usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:110:in top_level' /usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:83:in block in run' /usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:186:in standard_exception_handling' /usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:80:in run' /usr/local/bundle/gems/rake-12.3.1/exe/rake:27:in <top (required)>' /usr/local/bundle/bin/rake:23:in load' /usr/local/bundle/bin/rake:23:in <top (required)>' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:74:in load' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:74:in kernel_load' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:28:in run' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli.rb:463:in exec' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in invoke_command' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor.rb:387:in dispatch' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli.rb:27:in dispatch' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in start' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli.rb:18:in start' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/exe/bundle:30:in block in <top (required)>' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/friendly_errors.rb:124:in with_friendly_errors' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/exe/bundle:22:in <top (required)>' /usr/local/bin/bundle:23:in load' /usr/local/bin/bundle:23:in `
parse_result' /usr/local/bundle/gems/uglifier-4.1.20/lib/uglifier.rb:216:in
compile' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/compressing.rb:65:in
call' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in
block in call_processors' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in
call_processors' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in
block in load' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in
load' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in
load' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in
find_all_linked_assets' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:142:in
block (2 levels) in logical_paths' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:228:in
block in stat_directory' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in
stat_directory' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:227:in
each' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in
each' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in
find' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in
block (3 levels) in define' /usr/local/bundle/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in
block (2 levels) in define' /usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:271:in
each' /usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:271:in
block in invoke_with_call_chain' /usr/local/lib/ruby/2.5.0/monitor.rb:226:in
invoke_with_call_chain' /usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:182:in
invoke_task' /usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:116:in
each' /usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:116:in
run_with_threads' /usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:110:in
block in run' /usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:186:in
run' /usr/local/bundle/gems/rake-12.3.1/exe/rake:27:in
load' /usr/local/bundle/bin/rake:23:in
load' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:74:in
run' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli.rb:463:in
run' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in
dispatch' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli.rb:27:in
start' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli.rb:18:in
block in <top (required)>' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/friendly_errors.rb:124:in
<top (required)>' /usr/local/bin/bundle:23:in
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have in environments/production.rb:
$ RAILS_ENV=production bundle exec rake assets:precompile --trace
'** Invoke assets:precompile (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Invoke yarn:install (first_time)
** Execute yarn:install
Yarn executable was not detected in the system.
Download Yarn at https://yarnpkg.com/en/docs/install
** Execute assets:precompile
rake aborted!
Uglifier::Error: Unexpected token: name (newline)
/usr/local/bundle/gems/uglifier-4.1.20/lib/uglifier.rb:234:in
parse_result' /usr/local/bundle/gems/uglifier-4.1.20/lib/uglifier.rb:216:in
run_uglifyjs'/usr/local/bundle/gems/uglifier-4.1.20/lib/uglifier.rb:168:in
compile' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/compressing.rb:65:in
block in js_compressor='/usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/legacy_proc_processor.rb:31:in
call' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in
call_processor'/usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in
block in call_processors' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in
reverse_each'/usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in
call_processors' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in
load_from_unloaded'/usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in
block in load' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in
fetch_asset_from_dependency_cache'/usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in
load' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in
block in initialize'/usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in
load' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in
find_asset'/usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:in
find_all_linked_assets' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:142:in
block in find'/usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:114:in
block (2 levels) in logical_paths' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:228:in
block in stat_tree'/usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:212:in
block in stat_directory' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in
each'/usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in
stat_directory' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:227:in
stat_tree'/usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in
each' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in
block in logical_paths'/usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in
each' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in
logical_paths'/usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:140:in
find' /usr/local/bundle/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in
compile'/usr/local/bundle/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:in
block (3 levels) in define' /usr/local/bundle/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in
with_logger'/usr/local/bundle/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in
block (2 levels) in define' /usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:271:in
block in execute'/usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:271:in
each' /usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:271:in
execute'/usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:213:in
block in invoke_with_call_chain' /usr/local/lib/ruby/2.5.0/monitor.rb:226:in
mon_synchronize'/usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:193:in
invoke_with_call_chain' /usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:182:in
invoke'/usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:160:in
invoke_task' /usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:116:in
block (2 levels) in top_level'/usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:116:in
each' /usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:116:in
block in top_level'/usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:125:in
run_with_threads' /usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:110:in
top_level'/usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:83:in
block in run' /usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:186:in
standard_exception_handling'/usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:80:in
run' /usr/local/bundle/gems/rake-12.3.1/exe/rake:27:in
<top (required)>'/usr/local/bundle/bin/rake:23:in
load' /usr/local/bundle/bin/rake:23:in
<top (required)>'/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:74:in
load' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:74:in
kernel_load'/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:28:in
run' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli.rb:463:in
exec'/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in
run' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in
invoke_command'/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor.rb:387:in
dispatch' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli.rb:27:in
dispatch'/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in
start' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli.rb:18:in
start'/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/exe/bundle:30:in
block in <top (required)>' /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/friendly_errors.rb:124:in
with_friendly_errors'/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/exe/bundle:22:in
<top (required)>' /usr/local/bin/bundle:23:in
load'/usr/local/bin/bundle:23:in `
Tasks: TOP => assets:precompile
The text was updated successfully, but these errors were encountered: