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

Popular posts from this blog

Another user has changed the row with primary key oracle.jbo.Key[12 ].

weblogic windows JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: Failed to lock cwallet.sso.lck

Working With File Throgh WebUtill