Error Help w/ Plunker: No component factory found for undefined. Did you add it to @NgModule.entryComponents? - WHY?

1,697 views
Skip to first unread message

David Edelstein

unread,
Feb 27, 2018, 10:27:08 AM2/27/18
to Angular and AngularJS discussion
Please take a look at this Plunker. 


Why do I get "No component factory found for undefined. Did you add it to @NgModule.entryComponents?" Error?

I have SecondComp in my @NgModule entryComponent. 

Thanks!
David

Michael Wrock

unread,
Feb 27, 2018, 3:47:47 PM2/27/18
to Angular and AngularJS discussion
You are importing

import {SecondComponent} from './second.component';

but are exporting

export class SecondComp {

SecondComponent is undefined, as the error correctly states. Update your export, or your import, and the error should be resolved.
Reply all
Reply to author
Forward
0 new messages