@zaioboy wrote:
Hi all i hope u’re doing good . i have a serious problem . i finished my app build and publish it on android and when o move to ios (i build on VMware) when i run normal ios build it works but i make build ios --prod i gives me these error :
typescript error 'ion-icon' is not a known element: 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. ("-footer class="footer-style-dark"> <ion-toolbar> <ion-title (click)="openAppointment()"> [ERROR ->]<ion-icon class="home"></ion-icon> <span>Book appointment</span></ion-title> </ion-toolbar> </i") [17:35:34] typescript error 'ion-title' is not a known element: 1. If 'ion-title' is an Angular component, then verify that it is part of this module. 2. If 'ion-title' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. (" [ERROR ->] Book appointment [17:35:34] typescript error 'ion-toolbar' is not a known element: 1. If 'ion-toolbar' is an Angular component, then verify that it is part of this module. 2. If 'ion-toolbar' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. (" [ERROR ->] [17:35:34] typescript error 'ion-footer' is not a known element: 1. If 'ion-footer' is an Angular component, then verify that it is part of this module. 2. If 'ion-footer' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("[ERROR ->] Error: The Angular AoT build failed. See the issues above at /Users/x/Desktop/mybeauty/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:237:55 at step (/Users/x/Desktop/mybeauty/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:32:23) at Object.next (/Users/x/Desktop/mybeauty/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:13:53) at fulfilled (/Users/x/Desktop/mybeauty/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:4:58) [17:35:34] copy finished in 23.22 s
i have multipe page . i added on html file after ion-content . this code order now i searched for solutions i triend many , but dosen’t work for me ,
i tried to add CUSTOM_ELEMENTS_SCHEMA to app.module.ts and all pages.module.ts
i tried CUSTOM_ELEMENTS_SCHEMA & NO_ERRORS_SCHEMA . add it and
import it . but not work . the prbolem is i have deleted that footer from all page . but it gives me the same error .
i tried to import ionicmodule on all pages.module.ts .
can u please help me , i need to publish this app on ios asap .
Posts: 1
Participants: 1