-
Notifications
You must be signed in to change notification settings - Fork 12k
An unhandled exception while Generating ES5 bundles #15493
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
Comments
Same issue here. |
Hi @ronfogel and @xawill, can anyone of you provide the logs please and take it from there? Most likely though we'd need a minimal repro. You can read here why this is needed. A good way to make a minimal repro is to create a new app via |
Dear @alan-agius4, Thank you very much for getting back to us so quickly. Here are my logs : > [email protected] ng OBFUSCATED_CI_PATH Here is what is contained in
As a programmer, I totally understand why you need a way to reproduce the problem in order to solve it. Unfortunately I cannot, as it only happens when building in the CI (i.e. it doesn't happen locally even though the setup is identical) and of course I cannot give you access to my CI... I have no clue how to help you help me for this one... But tell me if you have any idea. |
Seeing the full stacktrace it might be a resource problem since CIRCLE CI will have limited resources If you are using the free plan the resources are 2CPU and 4096MB. |
It's Atlassian bamboo CI, for me, but I also arrived at the conclusion that it was ressources related. I'll try to tweak the performance parameters of Bamboo. |
In 8.3 we are using workers farms which will spawn multiple processes at once to parallelize ES5 bundles generation. |
@alan-agius4 Maybe a good way to maintain it (sounds like a good way to improve performance locally) and provide a solution to CI environments with limited resources would be adding an option to angular.json or some other place to determine whether it should run multiple processes to parallelize ES5 bundles generation or not. |
This has just started happening to me after Upgraded from 0.803.2 to 0.803.3 etc and still happens (I'm not presently in a position to make a minimal repo, sorry)
|
I was able to fix my build by for the moment changing the See https://angular.io/guide/deployment#differential-loading |
@pastcompute Can you provide the output just prior to the |
Thanks it works for me |
@clydin here ya go: From CircleCI (failing build): And filesizes after compiling (successfully) locally: |
…or large sourcemaps Mitigates angular#15493
I can reproduce the problem by running I'm running WSL on Windows. |
@paullryan Can you open a new issue describing the problem you are encountering? If possible please include the full output of |
@clydin I realized it was because the prod flag was not being recognized by the build system that was failing so sorry for the the false alarm, thanks for the response but no need for a new issue. |
This worked in conjunction with removing the file browserslist |
Hello. It happened to me after upgrading to angular/[email protected] and angular-devkit/[email protected]. Going back to .20 "fixed" the issue. |
|
@Harika511
Note missing "~" or "^" characters. |
@robelcik many many thanks |
Definetely started hanging on differential loading for me after I ran npm audit fix yesterday, which updated @angular-devkit/build-angular from ^0.802.2 to ^0.803.21. If I roll back to 0.802.2 I can build again. Even 0.803.0 doesn't work. |
i use angular 8.2.10, install latest nodejs solved my problem. no need to change anything :) |
I use angular 8.2.10, upgrade nodejs to v12.14.0 solved my problem. |
run cmd |
Hi bdiriamine, I had so so so much errors and ionic cordova build --release android nothing helped... IONIC Should know (I am using IONIC 5) for the Mobile app to release something hassle free... Your Answer saved me from two days Work.... Thank you so so so much. The Built the APP as you said. ionic cordova run android --prod Happy New year Cheers. Thank you |
This worked for me also. I also noticed that removing any modules that referenced "ngx-bootstrap" caused the problem to go away. |
Hello. It happened to me after upgrading to angular/[email protected] and angular-devkit/[email protected]. Going back to .20 "fixed" the issue._ thnx mate, this worked for me. |
|
Updating node to 12.14.0 worked for me with the latest build-angular and cli packages. Thanks. |
After updating to 8.3.21, I also have this issue but only for non production issues. When building with |
Same issue for me. Can we get this issue reopened or is there another issue tracking it? This must be affecting most users. |
I guess this is related (or even the same): #16515 |
"@angular-devkit/build-angular": "~0.803.21", still happens |
@dicbrus could you try this? |
I accidentally stumbled upon this thread. In my case CircleCI was failing because of displaying too much progress in the build step. A small change by running |
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. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was 8.2.1, maybe 8.2.2
Description
When using ng build in circle ci, it throws an error (screenshot attached):
🔬 Minimal Reproduction
Unfortunately, I cant provide a way to reproduce it as it happens only in CI and I am unable to get the logs. I think it's related to the size of my app but I cant be sure.
🔥 Exception or Error
🌍 Your Environment
The text was updated successfully, but these errors were encountered: