Open mur-wtag opened 2 years ago
Seems replacing with terser with ES6 support has been the repeated suggestion here.
This seems to be caused by Turbo having es2020? features in it's gems' /app/assets/javascripts/turbo.js
. I've hit the same problem and am not sure how to proceed.
Weirdly enough the exact syntax is not in the source code of https://github.com/hotwired/turbo-rails
Here's the fix in turbo-rails
https://github.com/hotwired/turbo-rails/pull/337/files
Use main
branch version until >= v1.1.2
comes out:
gem "turbo-rails", github: 'hotwired/turbo-rails'
Edit or more safely with:
gem "turbo-rails", github: 'hotwired/turbo-rails', ref: '37be2c6c39c417ddd5f12dcd494fb232220b0d08'
I know there there are tons of solution for this issue and I've tried all of them and still facing this issue while it's trying to compile assets.
here is the error logs:
In my project's
production.rb
I've defined this to enable ES6/harmony:Not sure how to resolve this issue. Any help will be appreciable 🙏