How To
Summary
During the Next-Gen Call Center customisation, the build process fails while generating the UI extensions JAR due to the following error-
Error: bundle initial exceeded maximum budget. Budget 6.00 kB was not met by 48.46 kB with a total of 54.46 kB.
Steps
To resolve “bundle initial exceeded maximum budget” error, need to adjust the budget limits in the angular.json file.
Update the budgets section to set maximumWarning and maximumError values higher than the expected bundle size for the specific module.
Example:
If getting the error as create-return: Error: bundle initial exceeded maximum budget.
In callcenter-code/call-center-return/angular.json,
- Navigate to create-return -> architect -> build -> configurations and increase the budgets as below.
"budgets": [
{
"type": "initial",
"maximumWarning": "10mb",
"maximumError": "25mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "100kb",
"maximumError": "500kb"
}
]
- Navigate to create-return -> architect -> build -> configurations -> merged-prod and update the same budgets.
"budgets": [
{
"type": "initial",
"maximumWarning": "10mb",
"maximumError": "25mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "100kb",
"maximumError": "500kb"
}
]- Re-start the UI Extension Jar build process.
The build should be completed successfully without exceeding the defined budget limits.
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
25 December 2025
UID
ibm17250011