ERROR Error: No component factory found for TecladoLoginComponent. Did you add it to @NgModule.entryComponents? code example

Example: ERROR Error: No component factory found for NotificationRegisterComponent. Did you add it to @NgModule.entryComponents?

#Simple Soultion : You need to add SearchFoodModalComponent 
#into entrycomponents in @NgModule


import { NgModule } from '@angular/core';

import { SearchFoodModalComponent } from "../../modals//searchFood/searchFood.component";
import { InboundComponent } from './inbound/inbound.component'




@NgModule({
    declarations: [InboundComponent,SearchFoodModalComponent],
    imports: [

    ],
    exports: [
        RouterModule
    ],
    providers: [InboundService],
    entryComponents: [SearchFoodModalComponent]
})
export class InBoundFormModule {
}