Ionic Giving Typescript Error While Building
Hello i am trying to build android application for production using command ionic cordova build android --prod The problem is that after running this code it is giving me this foll
Solution 1:
I have faced this issue several times as ionic says a specific page is part of two declarations one is our main app component declarations and the second is individual components modules. So basically removing it from individual component.module.ts file works for me so try removing the page declaration from your contact.module.ts file
@NgModule({
declarations : [
//keep this empty
],
imports : [
....
]
Solution 2:
Remove "ContactsPage" from "declaration" and entry "components" in your "AppModule.ts" as it is already imported in "contact.module.ts"
Post a Comment for "Ionic Giving Typescript Error While Building"