-
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: Unexpected token: punc (.) #186
Comments
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' |
Weirdly enough the exact syntax is not in the source code of https://github.com/hotwired/turbo-rails |
Here's the fix in
Edit or more safely with:
|
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 🙏
The text was updated successfully, but these errors were encountered: