-
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
Compilation Failed without error message #955
Comments
@schepens83 Please consider bumping up the instance memory or compile your assets locally and then push it to production. Webpack uses considerable amount of memory during compilation. |
@gauravtiwari Thanks for the tip. I take it you mean I run |
If you compile your assets locally, then you don't need to run - |
Just run this locally - |
@gauravtiwari Alright, that solved it! Thanks for the help. For future viewers; simple thing, but I had to delete the automatically added public/packs/ line from my .gitignore file, to make it work. |
@gauravtiwari Just as an additional question. How much (additional/total) memory would the droplet require to stop having this problem? |
@schepens83 Depends on how big the app is, but please try bumping up to 1GB and see if that solves the problem. |
just bumping the memory size solved my problem, thanks @gauravtiwari |
Why is it failing without an error message? The OP might have resolved their issue, but this is still a bug as far as I can tell. |
👆 This! I had to dig up here to find it might be a memory issue. This issue might also come up more often then you think. My app has about 10 React components, 3 reducers and I'm hitting this problem on Heroku. (I'm not yet sure it's a memory limitation but the compilation works correctly locally.) |
@betaflag @ch-tactica Error details were suppressed to reduce dev server output in development: #1834 (comment). I didn't agree with that choice, but perhaps a PR with supporting evidence from an actual app would make a better case than I did. If you want to skip to a solution, here are a few things that can make your output more detailed: #1824 (comment) |
In case anyone else runs into this, I had to set I don't really understand why it wouldn't be outputting things regardless of that option on failure, but 🤷♂ |
Probably related #2143 |
this helped a lot, devs PLEASE make logging default to ON for production. I fought this for a week to find it was a missing file. |
Such a terrible decision to remove this by default, it really fucked me up! Excuse my french! |
Agreed! Adding @connorshea's |
My app faced webpacker compiled failed but no details message. Would anyone mind to help me on how to get details message please? |
For those who run the precompilation step in Dockerfile, set |
@andresuchitra Not sure if this helps, but I just ran into a silent failure because I didn't have yarn installed on the server. |
I'm running this on CircleCI 2.0, getting a silent failure with
I suspect it might be a memory issue, but haven't had the time to really research it that much yet. Edit: seems to have been a resource issue indeed, it was resolved after we upgraded our plan over the weekend |
Thanks for everyone's contributes. As @Tuuleh said, it was caused by lacking of enough memory. @ciremoussadia offers a great solution if you cannot increase machine's memory. |
Great! I solved my problem with webpack_compile_output only production |
I was having the same issue on macOS, with |
Could you explain why this is? Why would it run twice? My understanding was that this setting only compiles if you haven't already compiled assets. As long as the assets you compiled in the docker image live in the correct directory (directory at If you've set |
Hello
I have a problem using rails 5.1, webpacker and Vue2.js during deployment to a digital ocean ubuntu droplet. The compilation process fails without an error message. Sometimes the whole process hangs during compilation and I have to reboot the server. The application is very basic with little additional code or configuration other than what's standard out of the box.
See also this stackoverflow question for more details. You can see the code here.
The text was updated successfully, but these errors were encountered: