I am trying to build web app using Ionic 5
I have tried:
ionic cordova build browser --prod --release
and
ionic serve --prod
both failed and have error like:
1. If 'ion-header' is an Angular component, then verify that it is part of this module.
2. If 'ion-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
1. If 'ion-icon' is an Angular component, then verify that it is part of this module.
2. If 'ion-icon' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the'@NgModule.schemas' of this component to suppress this message.
It seems that when building production, it doesnot regconize ionic component.
I am fine when I use following command:
ionic serve
so how to deal with it?
Thanks
1 post - 1 participant