Moses
Moses

Reputation: 11

** ionic build --prod ** is not working when i going to build for production

When i tried ionic build --prod , not able to make on production, due to this, Vendor.js file size is 8.6MB which is taking to much time on loads and getting the attached image error. This error i am getting.

Upvotes: 0

Views: 545

Answers (1)

Mayank R Jain
Mayank R Jain

Reputation: 3147

The error you are seeing above is not about the file size.

The error is due to duplicate declaration of the Page (Wrong Lazy Load config). You have the Pages as modules and have declared them both in app.module and in the Page's own module. You must declare them at only one place. (ArchivedConversationsPage)

Do that and this issue will be resolved -- you will get a prod build.

Upvotes: 2

Related Questions