This post shows you how to solve "No component factory found for MessageComponent. Did you add it to @NgModule.entryComponents?" in Angular.

Open the app.module.ts, then add the entryComponents to the @NgModule as shown below.

@NgModule({
  imports: [...],
  exports: [...],
  entryComponents: [MessageComponent],
  providers: [...]
})

I hope you can solve the problem "No component factory found. Did you add it to @NgModule.entryComponents?" in Angular.