During CI/CD process of angular project, the following errors occur:
Warning: initial exceeded maximum budget. Budget 2.00 MB was not met by 3.01 MB with a total of 5.01 MB.
Error: initial exceeded maximum budget. Budget 5.00 MB was not met by 6.83 kB with a total of 5.01 MB.
The packed file is too large for the specified file size
Solution: modify the angular in the project JSON configuration file (memory parameters)
"budgets": [{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "6mb"
},
]
I originally set the maximum error to 5MB, but now I can set it to 6MB. The specific problem depends on the situation
Read More:
- [Solved] Error in event handler for “el.form.blur“: “RangeError: Maximum call stack size exceeded“
- [Solved] Vue beforeeach error: RangeError: Maximum call stack size exceeded at eval (permission.js?223d:39)
- Use of $watch in Vue (solve rangeerror: maximum call stack size exceeded)
- [Solved] Vue Error: Error in nextTick: “RangeError: Maximum call stack size exceeded“
- Vue Error: Maximum call stack size exceeded
- VUE Error: Vue Error in nextTick: “RangeError: Maximum call stack size exceeded“
- NPM publish an angular library Error [How to Solve]
- Trigger http request when tab page is closed in angular2+ project
- [Solved] antd4. X rangepicker assigns an initial value Error
- [Solved] QuotaExceededError the quota has been exceeded — Firefox
- [Solved] Hydration failed because the initial UI does not match what was rendered on the server
- [Solved] Angular basic create component error: Is it missing an @NgModule annotation
- [Solved] Npm install Error: verbose stack Error: unable to resolve dependency tree
- [Solved] Project Package Error: Javascript heap out of memory
- [Solved] Vue Compile Error: JavaScript heap out of memory
- [Solved] Invalid prop: type check failed for prop “modelValue“. Expected Number…
- [Solved] NPM Error: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed
- How to Solve JS error: Unexpected end of JSON input,Unexpected token u in JSON at position 0
- [Solved] Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory
- [Solved] Vue3 Error: error Delete `··` prettier/prettier