-
Notifications
You must be signed in to change notification settings - Fork 84
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
Uglifier::Error: #173
Comments
Getting the same error. Had to fork the gem, re-package the harmony branch of uglify, then copy it into the fork. Seems to be working now - not sure what the cause is. |
had the same same issue, had to reference your version and it worked for me too, thank you 👍 |
Same issue...
|
Thanks so much. We spent two days tracing this down. 👀 |
It's the de-structured assignment, somehow. 4.2.0 breaks on my code as well, on this line: var [icon, title, typeClass] = this.__typeData(type) If I use a traditional way of de-structuring my data -- or just comment out that line -- it uglifies just fine. Thanks for the 4.1.0 tip; it saved me some headaches on the upcoming production push. :) |
After trying to get this working with Uglifier, I ended up switching to Terser, more details here: #185 |
Uglifier::Error:
from ****gems/uglifier-4.2.0/lib/uglifier.rb:291:in `parse_result'
To reproduce the error, just paste the code in your file and run
Uglifier.new(harmony: true).compile(File.read("test.js"))
But these code won't raise this error:
Any one knows the reason? I am using uglifier (4.2.0)
The text was updated successfully, but these errors were encountered: