-
Notifications
You must be signed in to change notification settings - Fork 328
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 during assets:precompile #591
Comments
In my case, I don't actually want to precompile Turbo since I'm sourcing it from NPM. For me, this is the best solution: https://github.com/hotwired/turbo-rails/blob/v2.0.3/lib/turbo/engine.rb#L22-L27 |
@rzane Did you ever figure out the issue? I'm pretty stuck on this and not sure what to do. I need my app to work on older iOS versions. |
I think from the link the fix is to add if config.assets.compile Which seems to have fixed the problem on my side |
In my case, my product used the uglifier gem to compress JavaScript, so I resolved the issue by switching to terser for compression. Note that uglifier mentions, “UglifyJS only works with ES5. If you need to compress ES6, ruby-terser is a better option.” |
It looks like this issue has come up before, but with a different version of Turbo. I'm using turbo-rails v2.0.3.
I followed the error message and added the following configuration.
But, unfortunately, I get the same error.
The text was updated successfully, but these errors were encountered: