简体   繁体   中英

** 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 .我得到这个错误。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM