Skip to content
New issue

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

Asset pipeline error using uglifier #26

Closed
robban opened this issue May 25, 2018 · 2 comments
Closed

Asset pipeline error using uglifier #26

robban opened this issue May 25, 2018 · 2 comments
Labels

Comments

@robban
Copy link

robban commented May 25, 2018

When deploying to heroku, I got an error when rake assets:precompile ran:

ExecJS::RuntimeError: SyntaxError: Invalid assignment
JS_Parse_Error.Object.defineProperty.get((execjs):3538:621)

I managed to solve this by replacing

config.assets.js_compressor = :uglifier

with

config.assets.js_compressor = Uglifier.new(harmony: true)

Is there some ES6 code in rails_sortable that makes uglifier fail without the harmony setting?

@itmammoth
Copy link
Owner

itmammoth commented May 25, 2018

@itmammoth
Copy link
Owner

rails_sortable-1.2.1 was pushed to rubygems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants