title: Lazy loading not working in Angular 6
body: <p>I'm getting this error when try to navigate to '<a href="http://localhost:4200/dashboard" rel="noreferrer">http://localhost:4200/dashboard</a>' lazy loading route  in angualr, angualr-cli 6.0.0</p>
  
  <blockquote>
    <p>ERROR Error: Uncaught (in promise): Error: Cannot find module
    "app/dashboard/dashboard.module". Error: Cannot find module
    "app/dashboard/dashboard.module".
        at $_lazy_route_resource lazy namespace object:5</p>
  </blockquote>
  
  <pre><code>const routes: Routes = [
      {
          path: 'login',
          loadChildren: 'app/login/login.module#LoginModule',
  
      },
      {
          path: '',
          component: MasterComponent,
          children: [
              {
                  path: 'dashboard',
                  loadChildren: 'app/dashboard/dashboard.module#DashboardModule'
              }
          ],
      },
      {
          path: '**',
          redirectTo: 'login
      }
  ];
  
  
  @NgModule({
      imports: [RouterModule.forRoot(routes)],
      exports: [RouterModule],
      providers: []
  })
  export class AppRoutingModule {
  }
  </code></pre>