WARNING in budgets, maximum exceeded for initial. Budget 2.1 MB was exceeded by 1.47 MB.

9,108 views
Skip to first unread message

Partha Majumdar

unread,
Oct 30, 2018, 8:42:03 AM10/30/18
to Angular and AngularJS discussion
Dear Sir/Madam,

I developed an application using Angular 6. It was working and I could make a production build and install on AWS.

I upgraded to Angular 7 and then the application was destroyed, With lots of effort, I got the application up again in 4 days. I could run the application locally on my machine. When I tried to make the production build, it gave error. I am trying to get a solution for that.

Then, I made a new blank application in Angular 7. Then I could create a production build of this empty app. 
I have started to add the components of my existing app to this blank app and building after each add. This is working so far. I can build a production build.

After adding about 5 sets of components, I am now getting the below WARNING when I create the production build.

Please help me resolve this.

Thanks and Regards,
Partha

192:pConfMan-v11 parthamajumdar$ ng build --prod --aot


Date: 2018-10-30T12:33:36.244Z
Hash: 0076630d9dc301c0fa6a
Time: 94228ms
chunk
{0} runtime.ec2944dd8b20ec099bf3.js (runtime) 1.44 kB [entry] [rendered]
chunk
{1} main.7018f657f38dc92bdec9.js (main) 3.05 MB [initial] [rendered]
chunk
{2} polyfills.c6871e56cb80756a5498.js (polyfills) 38.4 kB [initial] [rendered]
chunk
{3} styles.2afea9ce6221e4313242.css (styles) 483 kB [initial] [rendered]


WARNING
in budgets, maximum exceeded for initial. Budget 2.1 MB was exceeded by 1.47 MB.

Lucas Lacroix

unread,
Oct 30, 2018, 8:45:17 AM10/30/18
to ang...@googlegroups.com
It's a warning, not an error. You can either ignore it, or set a new budget.

--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
--
Lucas Lacroix
Computer Scientist
Advanced Technology Division, MEDITECH

                
Subscribe to receive emails from MEDITECH or to change email preferences.

Partha Majumdar

unread,
Oct 31, 2018, 9:12:23 PM10/31/18
to ang...@googlegroups.com
Thanks Mr. Lucas.

Reply all
Reply to author
Forward
0 new messages