Open svyatov opened 7 years ago
Just had this error right now. Worked well in development but gave me an error as I was deploying. I wonder if there's any gem that could take care of this?
@svyatov did you found a workaround, or did you just downgrade?
For a standard Rails 5 app this can be remedied by editing config/environments/production.rb
and replacing
config.assets.js_compressor = :uglifier
with
config.assets.js_compressor = Uglifier.new(harmony: true)
It's somewhat OK, but I think it's worth mentioning in changelog and readme files. I spent quite some time debugging it after gem update. The error wasn't that straightforward:
And just a suggestion: please reverse the order in your changelog files across all peek gems. A common practice suggests that versions should go in descending order. Then the most recent changes are always at the top which is much more convenient. Examples: https://github.com/rails/webpacker/blob/master/CHANGELOG.md https://github.com/rspec/rspec-core/blob/master/Changelog.md https://github.com/thoughtbot/factory_bot_rails/blob/master/NEWS https://github.com/mperham/sidekiq/blob/master/Changes.md https://github.com/plataformatec/devise/blob/master/CHANGELOG.md
Anyway, thank you for
peek
, it's awesome and we use it everyday. Let me know if I can help with any of these issues I mentioned above.