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.
On Tuesday, February 27, 2018 at 10:27:08 AM UTC-5, David Edelstein wrote:
>
> 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
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.