title: Error while implenting lazy-loading in angular 8: : ASSERTION ERROR: NgModule 'MyReportsGridComponent' is not a subtype of 'NgModuleType'
body: <p>I read some articles can't seem to implement lazy-loading my application. I have angular 8 installed and it seems I have the right syntax. Is there a specific strategy or way I need to have my components organized to get lazy loading to work? </p>
  
  <p>This is the error message: </p>
  
  <pre><code>core.js:7187 ERROR Error: Uncaught (in promise): Error: ASSERTION ERROR: NgModule 'MyReportsGridComponent' is not a subtype of 'NgModuleType'.
  Error: ASSERTION ERROR: NgModule 'MyReportsGridComponent' is not a subtype of 'NgModuleType'.
  </code></pre>
  
  <p>in my app.routing.module.ts where is what I have: </p>
  
  <pre><code>const routes: Routes = [
    {path: '', component:LoginComponent},
    {path: 'Login', component:LoginComponent},
    {path: 'tasks', component:TaskComponent, canActivate:[AuthGuard]},
    {path: 'CreateTask', loadChildren: () =&gt; import ('./create-task/create-task.component').then(m =&gt; m.CreateTaskComponent), canActivate:[AuthGuard]},
    {path: 'ManageUser', loadChildren: () =&gt; import ('./manage-users/manage-users.component').then(m =&gt; m.ManageUsersComponent), canActivate:[AuthGuard]},
    {path: 'MyReports', loadChildren: () =&gt; import ('./my-reports-grid/my-reports-grid.component').then(m =&gt; m.MyReportsGridComponent), canActivate:[AuthGuard]},
    {path: 'CreateTeamName',loadChildren: () =&gt; import ('./create-new-team-name/create-new-team-name.component').then(m =&gt; m.CreateNewTeamNameComponent), canActivate:[AuthGuard]},
    {path: 'ManageTeams',loadChildren: () =&gt; import ('./manage-teams/manage-teams.component').then(m =&gt; m.ManageTeamsComponent), canActivate:[AuthGuard]},
    { path: '**', component: PageNotFoundComponent },
    {path: 'Register', component:RegisterComponent}
  ];
  
  @NgModule({
    imports: [RouterModule.forRoot(routes, { useHash: true, enableTracing: false, initialNavigation: true, onSameUrlNavigation: 'ignore' })],
    exports: [RouterModule]
  })
  export class AppRoutingModule { }
  </code></pre>
  
  <p>Any suggestions?</p>