Angular - Error: initial exceeded maximum budget.
When trying to execute this command
npx nx run master:build:production --build-optimizer
I got this error
Angular - Error: initial exceeded maximum budget.
solition
1- open vscode and serach for maximumError
you will find it in package.json
increase the value for maximumError. Old value was the value from 4Kb and 1 mb
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "10mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "40mb"
}
],
Comments