Groups
Groups
Sign in
Groups
Groups
Angular and AngularJS discussion
Conversations
Labels
About
Send feedback
Help
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 AM
2/27/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Angular and AngularJS discussion
Please take a look at this Plunker.
https://plnkr.co/edit/BM3NMR?p=preview
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 PM
2/27/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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