title: ionic 4 Storage Injection error: no provider
body: <p>So, I'm running ionic 4 with node 8.x, trying to inject Storage to an app so I can retrieve a token from my auth service, but I'm getting the following error:</p>
  
  <pre><code>StaticInjectorError(AppModule)[Storage]: 
    StaticInjectorError(Platform: core)[Storage]: 
      NullInjectorError: No provider for Storage!
      at 
  </code></pre>
  
  <p>I read others about the same problem, but they seem to have type errors, which I don't think it's the case.</p>
  
  <p>here's my app.module</p>
  
  <pre><code>  import { NgModule } from '@angular/core';
    import { BrowserModule } from '@angular/platform-browser';
    import { RouteReuseStrategy } from '@angular/router';
  
    import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
    import { SplashScreen } from '@ionic-native/splash-screen/ngx';
    import { StatusBar } from '@ionic-native/status-bar/ngx';
  
    import { AppComponent } from './app.component';
    import { AppRoutingModule } from './app-routing.module';
  
    import { HttpClientModule } from '@angular/common/http';
    import { Storage, IonicStorageModule } from '@ionic/storage';
    import { JwtModule, JWT_OPTIONS } from '@auth0/angular-jwt';
  
    export function jwtOptionFactory(storage) {
      return {
        tokenGetter: () =&gt; {
          return storage.get('access_token')
        },
        whitelistedDomains: ['localhost:5000']
      }
    }
  
    @NgModule({
      declarations: [AppComponent],
      entryComponents: [],
      imports: [
        BrowserModule, 
        IonicModule.forRoot(),
        AppRoutingModule,
        HttpClientModule, 
        IonicStorageModule.forRoot(),
        JwtModule.forRoot({
          jwtOptionsProvider: {
            provide: JWT_OPTIONS,
            useFactory: jwtOptionFactory,
            deps: [Storage]
          }
        })
      ],
      providers: [
        StatusBar,
        SplashScreen,
        { provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
      ],
      bootstrap: [AppComponent]
    })
    export class AppModule {}
  </code></pre>
  
  <p>I think the error is referring to the <code>deps: [Storage]</code>, but I can't seem to find a solution. </p>