-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Stuck @ 70% When Building for Production (70% building modules 852/852 modules 0) #9779
Comments
same issue here... |
I see you're using |
Hello, @filipesilva Let me try to recreate the issue in an app that is not private. I will do that now and keep you updated. Also as an FYI, I am using this environment now:
With the same issue. It is only when you build for production. doing a simple serve works just fine. Thanks and I will get you a repo. |
@filipesilva I was not able to reproduce this error with a fresh project. So please find a version of the repo demonstrating the problem. I hope this helps! I thank-you for your time, please let me know if there is anything I can do to help! REPO: Just do a Yarn Install, then Thanks! |
This seems to be a problem in webpack proper: webpack/webpack#6613. That threads indicates it might even be a bug in TurboFan. |
If using a 6.0.0 beta release and a production build appears to be stalled at 70%, please try the build with CSS extraction disabled.
There appears to be an issue with the Note there is also a performance issue at 79% due to the above referenced issue but within the Webpack |
@filipesilva A good find! Thanks!! @clydin Thank-you also for this tip. I see the issue now. The joys of front-end dev :) I will play with the |
I'm having the same issue
but adding
|
Hi Guys! After reading through some of the current issues, and the offered workarounds right now. I was able to build my large repo for production using this command:
Yes, it's a long one, but hey it works! This is the environment I am using now:
I hope this can help someone in a similar situation. I am also sure that you don't need to use all the flags I did (although not tested). I think the key here from when I first reported the issue; is a combination of using the latest beta build in conjunction with the command Cheers! |
For me, it was issue with extract-text-webpack-plugin, which has a very buggy support for webpack 4 ( webpack-contrib/extract-text-webpack-plugin#749 ) . Switching to mini-css-extract-plugin solved the infinitely ongoing |
I had the same problem on v6.0.1. My cmd window got unresponsive at 68-70% as if it was inside an infinite loop. Turning off css or licences extraction did not help. But after restarting my pc (because I thought someone was locking the files) it got to 92% and then crashed. Luckily it showed me some errors this time. I've fixed them and then it completed to 100%. This line was causing the build to hang: So if you have the same problem. Check your styles. |
We had the same problem in our project and debugged it. When the process was hanging ( We found out it was hanging in Inspecting the variables we could see that the file causing the problem was a library we were importing : We just removed the library and I hope it helps you to find out why your |
Thanks @josketres ! Saved my day. However, we're actively using this library. How can I fix this? It was working fine in Angular v5. @filipesilva any suggestions? |
Hey @roldengarm, I have just encountered the exact same issue as you. Did you end up solving this? |
Hey @josketres i also encountered this issue.
i am using
have you idea what could be the possible cause for this issue? please help me out |
this works for me:
|
Looks like this issue is resolved in v6.0.0. If you're still facing this problem, please open a new issue. // cc @clydin |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
After updating to the latest CLI Build, I use the following CLI command located in my package.json file.
ng build --verbose -prod -aot --namedChunks --output-hashing none --build-optimizer true --app site --extract-licenses false --service-worker true --preserve-symlinks
I use
yarn build:pwa
to execute. I get no error of any kind. I am using a mono-repo, although I am not sure how that could be an issue.Observed behavior
The build begins but then hangs at 70%.
Desired behavior
Build my app :)
Mention any other details that might be useful (optional)
I can provide ANY bit of information that can help. Please let me know. Thanks for all your great work! Looking forward to resolving this.
Thanks.
The text was updated successfully, but these errors were encountered: