Have you imported Components as a custom module?
If the components listed below are part of your custom module, then they must be imported in both the declaration array and export array so that you can use these components in other modules.
Make sure to import your shared module wherever you are using these components.
// Custom modules.
import { AppToolbarComponent } from './app-toolbar/app-toolbar.component';
import { AuditDetailsComponent } from './audit-details/audit-details.component';
import { PgridComponent } from './grid/p-grid.component';
import { DropdownComponent } from './dropdown/dropdown.component';
import { DatePickerComponent } from './app-datepicker/app-datepicker.component';
import { SearchWellComponent } from './search-well/search-well.component';
import { ShowDialogComponent } from "./show-dialog/show-dialog.component";
import { CancelComponent } from './app-cancel/app-cancel.component';
import { iFrameComponent } from "./iframe/iframe.component";
Your shared module should look something like this, and remember to import this shared module wherever you are using its components.
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { AppToolbarComponent } from './app-toolbar/app-toolbar.component';
import { AuditDetailsComponent } from './audit-details/audit-details.component';
import { PgridComponent } from './grid/p-grid.component';
import { DropdownComponent } from './dropdown/dropdown.component';
import { DatePickerComponent } from './app-datepicker/app-datepicker.component';
import { SearchWellComponent } from './search-well/search-well.component';
import { ShowDialogComponent } from "./show-dialog/show-dialog.component";
import { CancelComponent } from './app-cancel/app-cancel.component';
import { iFrameComponent } from "./iframe/iframe.component";
@NgModule({
declarations: [
AppToolbarComponent,
AuditDetailsComponent,
PgridComponent,
DropdownComponent,
DatePickerComponent,
SearchWellComponent,
ShowDialogComponent,
CancelComponent,
iFrameComponent
],
imports: [
FormsModule,
ReactiveFormsModule,
CommonModule,
], schemas: [CUSTOM_ELEMENTS_SCHEMA],
exports: [CommonModule,
AppToolbarComponent,
AuditDetailsComponent,
PgridComponent,
DropdownComponent,
DatePickerComponent,
SearchWellComponent,
ShowDialogComponent,
CancelComponent,
iFrameComponent
]
})
export class SharedModule { }