-
Notifications
You must be signed in to change notification settings - Fork 10
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
Won't compile with webpacker #10
Comments
Hello, I’m not sure so just guessing but can you try to add .mjs resolution to you webpack config, might look something like this:
|
Thanks for your response! Since I'm using the webpacker rails gem, it's an issue with my config. I added this to my config/webpack/environment.js file for anyone else who stumbles upon this issue:
|
3 years later, I had the same type of issue while trying to add Pinia to Vue 2.7 running on Rails 6. Searching around, first I found a solution mentioning vue.config.js, then I found and article saying that in Rails what is done by vue.config.js is actually done by webpacker, so I googled webpacker mjs and happened upon this issue. Applying your suggestion @danigirl329 fixed my issue. Thanks! 🙂 |
I'm working through updating webpacker and receiving this error when trying to compile my assets:
I am using the rails/webpacker yarn dependency and the webpacker rails gem. Any help in resolving this issue would be really great - thanks!
The text was updated successfully, but these errors were encountered: