title: Cannot find module (Angular 2)
body: <p><br>
  I want to create some route with lazy load. But I can't get rid of error </p>
  
  <blockquote>
    <p>Cannot find module app/search/search.module</p>
  </blockquote>
  
  <p>Folder "search" is in the "app" folder, the path is correct. It works without webpack and this trouble starts after webpack configuring.
  <br>
  It works without lazy load.
  <br>
  Where is the problem?</p>
  
  <p>app.module.ts</p>
  
  <pre><code>import { NgModule }      from '@angular/core';
  import { BrowserModule } from '@angular/platform-browser';
  import { AppComponent }  from './app.component';
  import { RouterModule, Routes } from '@angular/router';
  
  const appRoutes: Routes = [
    { path: 'search', loadChildren: 'app/search/search.module#SearchModule' },
    { path: '**', redirectTo: '/search' }
  ];
  
  @NgModule({
    imports: [
      BrowserModule,
      RouterModule.forRoot(appRoutes)
    ],
    declarations: [ AppComponent ],
    bootstrap:    [ AppComponent ]
  })
  export class AppModule { }
  </code></pre>
  
  <p>search.module.ts</p>
  
  <pre><code>import { NgModule }      from '@angular/core';
  import { Routes, RouterModule } from '@angular/router';
  import { SearchComponent } from "./search.component";
  import { LocationsComponent } from "./locations/locations.component";
  import { CommonModule } from "@angular/common";
  import { GoogleMapsService } from "../shared/services/google-maps.service";
  
  const routes: Routes = [
    { path: '', component: SearchComponent },
    { path: '**', redirectTo: '' }
  ];
  
  @NgModule({
    imports: [
      CommonModule,
      RouterModule.forChild(routes)
    ],
    exports: [
      RouterModule
    ],
    declarations: [ SearchComponent, LocationsComponent ],
    providers: [ GoogleMapsService ]
  })
  export class SearchModule { }
  </code></pre>