title: Unhandled Promise rejection: StaticInjectorError[Router]: after updating to Angular 5
body: <p>I can't find the cause of error after upgrading Angular to version 5.0.1. Maybe someone has the same problem.</p>
  
  <pre><code>"dependencies": {  
      __"@angular/animations": "~5.0.1",__  
      __"@angular/cdk": "^5.0.0-rc0",__  
      __"@angular/cli": "^1.5.0",__  
      __"@angular/common": "~5.0.1",__  
      __"@angular/compiler": "~5.0.1",__  
      __"@angular/core": "^5.0.1",__  
      __"@angular/forms": "~5.0.1",__  
      __"@angular/http": "~5.0.1",__  
      __"@angular/material": "^5.0.0-rc0",__  
      __"@angular/platform-browser": "~5.0.1",__  
      __"@angular/platform-browser-dynamic": "~5.0.1",__  
      __"@angular/router": "~5.0.1"__  
  }  
  
  "devDependencies": {  
      __"@angular/cli": "1.5.0",__  
      __"@angular/compiler-cli": "~5.0.1",__  
      __"@angular/language-service": "~5.0.1"__  
  }  
  
  
       const appRoutes: Routes = [
          {
              path: 'users',
              loadChildren: './users/users.module#UsersModule'
          }
        ];
  
        export const appRouting: ModuleWithProviders = RouterModule.forRoot(appRoutes);
  
      import { appRouting } from './app.routing';
          @NgModule({
              declarations: [AppComponent],
              imports: [appRouting]
          ...
          )};
          ...
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/0YgPn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0YgPn.png" alt="enter image description here"></a></p>