title: ngmodule is not a subtype ngmoduletype
body: <p>I use angular 9 and I want to do lazy load and  I do <code>app-routing</code></p>
  
  <pre><code>{
      path: '', loadChildren: () =&gt; import("./components/login/login.module")//.then(m =&gt;
       // m.LoginModule)
    }
  </code></pre>
  
  <p>and after I create login module:</p>
  
  <pre><code>@NgModule({
      declarations: [LoginComponent],
      imports: [
          CommonModule,
          FormsModule,
          LoginModuleRouting
  
      ],
      providers:[]
  })
  export class LoginModule { }
  </code></pre>
  
  <p>and routing:</p>
  
  <pre><code>const routes: Routes = [
    {
      path: '', component: LoginComponent,
  
    }
  ];
  
  @NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
  })
  
  
  export class LoginModuleRouting { }
  </code></pre>
  
  <p>the proble is that when I call <code>ng serve</code>and I go on `<a href="http://localhost:4200/" rel="noreferrer">http://localhost:4200/</a>, I obtain this exception:</p>
  
  <p>core.js:6237</p>
  
  <pre><code> ERROR Error: Uncaught (in promise): Error: ASSERTION ERROR: NgModule '[object Module]' is not a subtype of 'NgModuleType'. [Expected=&gt; null != null &lt;=Actual]
  Error: ASSERTION ERROR: NgModule '[object Module]' is not a subtype of 'NgModuleType'. [Expected=&gt; null != null &lt;=Actual]
  </code></pre>
  
  <p>I don't knwo what it means. Anyone can help me?</p>