When including a component in the HTML of an Ionic page, I added it to the declarations array of the page.module.ts file like this:
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
DeleteFriendsPageRoutingModule
],
declarations: [DeleteFriendsPage,CommunityCardAccordionComponent,GroupTabsComponent],
entryComponents: []
})
export class DeleteFriendsPageModule {}
This resulted in the following error message:
Error: Type CommunityCardAccordionComponent is part of the declarations of 2 modules: CommunityPageModule and DeleteFriendsPageModule! Please consider moving CommunityCardAccordionComponent to a higher module that imports CommunityPageModule and DeleteFriendsPageModule. You can also create a new NgModule that exports and includes CommunityCardAccordionComponent then import that NgModule in CommunityPageModule and DeleteFriendsPageModule.