Bug #21857

uglifier 4.x fails to precompile assets

Added by Michael Moll 7 months ago. Updated 7 days ago.

Status:Closed
Priority:Normal
Assignee:Michael Moll
Category:JavaScript stack
Target version:1.16.1
Difficulty: Team Backlog:
Triaged: Fixed in Releases:
Bugzilla link: Found in Releases:
Pull request:https://github.com/theforeman/foreman/pull/5399, https://github.com/theforeman/foreman/pull/5053

Description

[...]
10:50:09 I, [2017-12-04T10:50:09.317696 #3386]  INFO -- : Writing /var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/x86/label/debian/os/stretch/debian/stretch/build-foreman/foreman-1.17.0/public/assets/compute_resources/vmware/nic_info-0c13e72d49157c9e5a2df17cbf5ef2d5c69df57463c106ae0c513c7f3709c553.js
10:50:09 I, [2017-12-04T10:50:09.318479 #3386]  INFO -- : Writing /var/lib/workspace/workspace/packaging_build_deb_coreproject/arch/x86/label/debian/os/stretch/debian/stretch/build-foreman/foreman-1.17.0/public/assets/compute_resources/vmware/nic_info-0c13e72d49157c9e5a2df17cbf5ef2d5c69df57463c106ae0c513c7f3709c553.js.gz
10:50:09 rake aborted!
10:50:09 Uglifier::Error: Unexpected token: keyword (const). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true).
10:50:09 /var/lib/gems/2.3.0/gems/uglifier-4.0.1/lib/uglifier.rb:237:in `parse_result'
10:50:09 /var/lib/gems/2.3.0/gems/uglifier-4.0.1/lib/uglifier.rb:219:in `run_uglifyjs'
10:50:09 /var/lib/gems/2.3.0/gems/uglifier-4.0.1/lib/uglifier.rb:169:in `compile'
[...]

Associated revisions

Revision 9e67484d
Added by Michael Moll 7 months ago

Fixes #21857 - don't use ES6 syntax in Rails JS asset

History

#1 Updated by The Foreman Bot 7 months ago

  • Pull request https://github.com/theforeman/foreman/pull/5053 added

#2 Updated by Michael Moll 7 months ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#3 Updated by Michael Moll 5 months ago

  • Related to Bug #22711: Webpack uglifier errors out added

#4 Updated by Michael Moll 5 months ago

  • Related to deleted (Bug #22711: Webpack uglifier errors out)

#5 Updated by The Foreman Bot 4 months ago

  • Pull request https://github.com/theforeman/foreman/pull/5399 added

Also available in: Atom PDF