Angular Lazy Loading ( the module has not been imported into your module)

you don't have your component in AuditorloginRoutingModule declarations:[...]


Your problem is in AuditorloginRoutingModule . you must be added AuditorloginComponent in declration like this

const routes: Routes = [
  { 
    path: '',
    component: AuditorloginComponent
}
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
  declarations: [
    // components that are used will be added here.
    AuditorloginComponent]
})
export class AuditorloginRoutingModule { }

You are only lazy loading the routing module, while you should load the AuditorloginModule which then uses the AuditorloginRoutingModule for routing and not the other way round.

{
    path: 'auditorlogin',
    loadChildren: 'app/auditor/auditorlogin/auditorlogin.module#AuditorloginModule',
    pathMatch: 'full'
},

Tags:

Angular