I'm using Angular 4 template with webpack and I have this error when I try to use a component (ConfirmComponent):
No component factory found for ConfirmComponent. Did you add it to @NgModule.entryComponents?
The component is declared in app.module.server.ts
@NgModule({
bootstrap: [ AppComponent ],
imports: [
// ...
],
entryComponents: [
ConfirmComponent,
],
})
export class AppModule { }
I have also app.module.browser.ts
and app.module.shared.ts
How can I fix that?
ConfirmComponent
the details are not enough to answer your question – Anik