-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Cannot compile javascript #2723
Comments
I surely would like to understand this "/node_modules/@rails/webpacker/package/babel/preset.js", which seems to randomly appear. This whole webpacker setup in rails 6 seems to be rather fragile. Or more precisely npm package repository itself is rather fragile with fragile packages. |
Basically I did
... and after this clean reinstall it did work (having seemingly "@rails/webpacker": "5.1.1"). Before it was failing various interesting ways (i.e. worked in devepment or in production, or failed either one; while both supposedly had same node modules installed). And in the future must be careful and try to avoid using "yarn upgrade" to upgrade all possible modules and such to avoid triggering fatal incompatibility errors |
this may solve: remove this error cause from
( and working webpack compatibility: |
Error message is here.
Code
application.js
application.html.erb
Environment
Tried command
Please help me.
Thanks for your advice.
The text was updated successfully, but these errors were encountered: