-
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
Bundle calculator assumes bundle size configs otherwise reduce fails on empty array #17215
Closed
11 tasks
Labels
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
Milestone
Comments
alan-agius4
added
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
labels
Mar 13, 2020
This was referenced Mar 19, 2020
This was referenced Mar 23, 2020
Closed
Closed
This was referenced Apr 10, 2020
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
🐞 Bug report
Command (mark with an
x
)Is this a regression?
The bug was introduced by this commit:
770de94#diff-86d5f24a73f7db8e65c3e66c4dab5205
Description
Our project does not have budgets set for all configurations. After upgrading to Angular 9, it cannot be built because of the following exception during the build process.
Calls to
Array.reduce
functions are missing default values here https://github.com/angular/angular-cli/blob/9.0.x/packages/angular_devkit/build_angular/src/angular-cli-files/utilities/bundle-calculator.ts🔬 Minimal Reproduction
We do not any simple reproducer, however the bug is obvious from the code directly.
🔥 Exception or Error
🌍 Your Environment
Even after adding the default budgets config, it still fails.
The text was updated successfully, but these errors were encountered: