title: "Error: DI Exception" when trying to run my angular 2 application?
body: <p>I tried upgrading my angular 2 application to RC5 and ran into some errors with one of the third party libraries I am using so I have decided to go back to RC4. I cloned my repo that was working successfully in RC4, ran npm install, etc, and now am running into this error when I run "npm start":</p>
  
  <pre><code>(index):32 Error: Error: DI Exception
      at NoProviderError.BaseException [as constructor] (http://localhost:3000/node_modules/@angular/core//bundles/core.umd.js:4472:27)
      at NoProviderError.AbstractProviderError [as constructor] (http://localhost:3000/node_modules/@angular/core//bundles/core.umd.js:4602:20)
      at new NoProviderError (http://localhost:3000/node_modules/@angular/core//bundles/core.umd.js:4638:20)
      at ReflectiveInjector_._throwOrNull (http://localhost:3000/node_modules/@angular/core//bundles/core.umd.js:6532:23)
      at ReflectiveInjector_._getByKeyDefault (http://localhost:3000/node_modules/@angular/core//bundles/core.umd.js:6560:29)
      at ReflectiveInjector_._getByKey (http://localhost:3000/node_modules/@angular/core//bundles/core.umd.js:6523:29)
      at ReflectiveInjector_._getByReflectiveDependency (http://localhost:3000/node_modules/@angular/core//bundles/core.umd.js:6513:25)
      at ReflectiveInjector_._instantiate (http://localhost:3000/node_modules/@angular/core//bundles/core.umd.js:6411:40)
      at ReflectiveInjector_._instantiateProvider (http://localhost:3000/node_modules/@angular/core//bundles/core.umd.js:6382:29)
      at ReflectiveInjector_._new (http://localhost:3000/node_modules/@angular/core//bundles/core.umd.js:6371:25)
  Evaluating http://localhost:3000/app/main.js
  Error loading http://localhost:3000/app/main.js
  </code></pre>
  
  <p>I am confused why this is not working now when it worked previously. Something in my environment must have changed to cause these issues. Here is what some of my setup looks like...</p>
  
  <p>main.ts:</p>
  
  <pre><code>let appProviders = [
    DivisionProposalsService,
    HTTP_PROVIDERS,
    LoggedInUser,
    TimelineService,
    UserService,
    LeadService,
    GeneralInfoService,
    FileService,
    Parameters
  ]
  
  bootstrap(AppComponent, [
    appProviders,
    appRouterProviders,
    disableDeprecatedForms(),
   provideForms()
  ])
  .catch(err =&gt; console.error(err));
  </code></pre>
  
  <p>app.component.ts:</p>
  
  <pre><code>@Component({
  selector: 'my-app',
  template: `
    &lt;navigation&gt;&lt;/navigation&gt;
    &lt;router-outlet&gt;&lt;/router-outlet&gt;
    &lt;!--&lt;proposal-page&gt;&lt;/proposal-page&gt;--&gt;
  `,
  directives: [NavigationComponent, DivisionProposalsComponent, ProposalPageComponent, ROUTER_DIRECTIVES]
  })
  export class AppComponent {
  ...
  </code></pre>
  
  <p>I don't really know what other code to show because the error is so generic. </p>
  
  <p>Could these npm install warnings have something to do with it?</p>
  
  <p>npm install</p>
  
  <blockquote>
    <p>angular2-quickstart@1.0.0 postinstall C:\test2
    typings install</p>
  </blockquote>
  
  <p>typings WARN deprecated 7/25/2016: "registry:dt/core-js#0.0.0+20160602141332" is deprecated (updated, replaced or removed)
  typings WARN deprecated 8/23/2016: "registry:dt/node#6.0.0+20160621231320" is deprecated (updated, replaced or removed)</p>
  
  <p>├── core-js (global)
  ├── jasmine (global)
  └── node (global)</p>
  
  <p>npm WARN optional Skipping failed optional dependency /chokidar/fsevents:</p>
  
  <p>npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14</p>
  
  <p>npm WARN @angular/core@2.0.0-rc.5 requires a peer of rxjs@5.0.0-beta.6 but none was installed.</p>
  
  <p>npm WARN @angular/http@2.0.0-rc.4 requires a peer of rxjs@5.0.0-beta.6 but none was installed.</p>
  
  <p>npm WARN @angular/platform-server@2.0.0-rc.3 requires a peer of @angular/core@2.0.0-rc.3 but none was installed.</p>
  
  <p>npm WARN @angular/platform-server@2.0.0-rc.3 requires a peer of @angular/common@2.0.0-rc.3 but none was installed.</p>
  
  <p>npm WARN @angular/platform-server@2.0.0-rc.3 requires a peer of @angular/compiler@2.0.0-rc.3 but none was installed.</p>
  
  <p>npm WARN @angular/platform-server@2.0.0-rc.3 requires a peer of @angular/platform-browser@2.0.0-rc.3 but none was installed.</p>
  
  <p>npm WARN @angular/router@3.0.0-beta.1 requires a peer of rxjs@5.0.0-beta.6 but none was installed.</p>
  
  <p>npm WARN angular2-in-memory-web-api@0.0.11 requires a peer of @angular/core@2.0.0-rc.1 but none was installed.</p>
  
  <p>npm WARN angular2-in-memory-web-api@0.0.11 requires a peer of @angular/http@2.0.0-rc.1 but none was installed.</p>
  
  <p>npm WARN angular2-in-memory-web-api@0.0.11 requires a peer of rxjs@5.0.0-beta.6 but none was installed.</p>
  
  <p>npm WARN angular2-modal@1.1.2 requires a peer of rxjs@5.0.0-beta.6 but none was installed.</p>
  
  <p>npm WARN ng2-bootstrap@1.0.24 requires a peer of @angular/common@2.0.0-rc.4 but none was installed.</p>
  
  <p>npm WARN ng2-bootstrap@1.0.24 requires a peer of @angular/compiler@2.0.0-rc.4 but none was installed.</p>
  
  <p>npm WARN ng2-bootstrap@1.0.24 requires a peer of @angular/core@2.0.0-rc.4 but none was installed.</p>