-
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
Elastic Beanstalk deploy fails due to deprecations #261
Comments
Please paste full log |
@ytbryan updated the logs! did I miss something? |
The deploy fails on heroku also for the same reason:
|
Don't see any useful error hint. Does it run properly at localhost first? @ankitsinghaniyaz can you share the repo? |
I think I found the issue, it has something to do with uglify and Vue Single File component: Here are the logs from my local:
Which is referring to this file:
Which in turn refers the .vue file, If the I remove that import it works just fine. Here is the vue file:
|
Try |
I was using that syntax by default, then this is the error:
Here is the file
|
Ok you have more syntax problems. I have corrected them below. It works in a Since this is not a webpacker issue, i think you can close it. You can continue to ask after you close the issue. Update: i just realise it's because of my eslint. Maybe you should add in eslint to fix any syntax issue?
|
@ytbryan I see the changes you've made but what was there already isn't that a valid syntax? Moreover, it compiles just fine when I run I still have the errors even after replacing the code with yours.
The error happens when we try to destructure:
|
I've also run into deployment problems based on syntax errors. In my case, I had a syntax error in a component's CSS stylesheet - it seemed that compiling assets failed silently with Webpacker 1.0. I'm not sure if that's the case with Rails 5+ without Webpacker 1.0. After fixing the syntax error, I noticed that on success a manifest json object was printed to the command line. As a user of Webpacker, I would have found it time-saving if there was some noise from Webpacker/Rails to tell me that my assets did not compile. |
UglifyJS does not support ES6 syntax at the moment. Rather than changing your syntax, you could also use the unstable version of uglify as described here: https://github.com/webpack-contrib/uglifyjs-webpack-plugin#install, and updating |
Hi, I am trying to deploy this app to AWS EB, but I'm stuck with some problem. Here is my log:
I tried to look into this issue webpack/loader-utils#56 but I am not sure how can I make this work with webpacker! Any help?
The text was updated successfully, but these errors were encountered: