Skip to content

Uglifier::Error: Unexpected token: keyword (const) #9

@parterburn

Description

@parterburn

When deploying on Heroku, there's a new error that popped up after upgrading to the latest Sprockets, per the vulnerability described at https://blog.heroku.com/rails-asset-pipeline-vulnerability

Uglifier::Error: Unexpected token: keyword (const). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true).

Gem versions:

sprockets (3.7.2)
sprockets_uglifier_with_source_maps (2.1.0)
uglifier (4.1.11)
sprockets-rails (3.2.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions