title: Angular 2 local storage - "has no exported member" compilation errors
body: <p>Thanks in advance for any help. I am trying to get local storage access in Angular 2 with typescript. I am using the npm package angular2-localstorage. I had the angular.io "Tour of Heroes" working (without much styling). I followed the instructions at <a href="https://www.npmjs.com/package/angular2-localstorage" rel="nofollow">https://www.npmjs.com/package/angular2-localstorage</a>. After adding the suggested code to my app.module.ts file, I tried running with <code>npm start</code>, and get the following compilation errors:</p>
  
  <pre><code>node_modules/angular2-localstorage/LocalStorageEmitter.ts(46,9): error TS2305: Module '"/Users/joshuaforman/Documents/CodeCraft/a2quickstart/a2-angular/node_modules/@angular/core/src/facade/lang"' has no exported member 'Type'.
  node_modules/angular2-localstorage/LocalStorageEmitter.ts(47,9): error TS2305: Module '"/Users/joshuaforman/Documents/CodeCraft/a2quickstart/a2-angular/node_modules/@angular/core/src/di"' has no exported member 'provide'.
  </code></pre>
  
  <p>You can see all the code here: <a href="https://github.com/joshuaforman/angular2-quickstart" rel="nofollow">https://github.com/joshuaforman/angular2-quickstart</a></p>
  
  <p>In addition, here is the full app.module.ts file (the only one I've changed that causes the errors to occur):</p>
  
  <pre><code>import { NgModule }       from "@angular/core";
  import { BrowserModule }  from "@angular/platform-browser";
  import { FormsModule }    from "@angular/forms";
  import { HttpModule }    from "@angular/http";
  
  // added for LocalStorage
  // followed instructions here: https://www.npmjs.com/package/angular2-localstorage
  import { LocalStorageService, LocalStorageSubscriber } from "angular2-localstorage/LocalStorageEmitter";
  
  // Imports for loading &amp; configuring the in-memory web api
  import { InMemoryWebApiModule } from "angular2-in-memory-web-api";
  import { InMemoryDataService }  from "./in-memory-data.service";
  
  import { AppComponent }        from "./app.component";
  import { HeroDetailComponent } from "./hero-detail.component";
  import { HeroesComponent }     from "./heroes.component";
  import { HeroService }         from "./hero.service";
  import  { DashboardComponent } from "./dashboard.component";
  
  import { routing } from "./app.routing";
  
  @NgModule({
    imports: [
      BrowserModule,
      HttpModule,
      InMemoryWebApiModule.forRoot(InMemoryDataService),
      FormsModule,
      routing
    ],
    declarations: [
          AppComponent,
          HeroesComponent,
          HeroDetailComponent,
          DashboardComponent
    ],
    bootstrap:    [ AppComponent ],
    providers:    [
          HeroService,
          LocalStorageService // added for Local Storage
    ]
  })
  export class AppModule {
    // added for Local Storage
    constructor(storageService: LocalStorageService) {}
  }
  </code></pre>
  
  <p>I have a comment with every line that I added to implement local storage that contains the text "LocalStorage". If you comment out those three lines, compilation and runtime works fine.</p>
  
  <p>At this point, I just want to be able to compile successfully. Thanks.</p>
  
  <p>Note: this is my first question on stack. I've found many answers here in the past, and I've tried my best to follow conventions in asking this question. Any productive feedback on what I should do differently in asking is welcome.</p>