title: TypeScript Error Cannot find module 'angularfire2/interfaces' ionic 3 angularfire2-offline
body: <p>When I want to setup angularfire2-offline I get this error:</p>
  
  <pre><code>[16:02:08]  typescript: node_modules/angularfire2-offline/database/database.d.ts, line: 2 
              Cannot find module 'angularfire2/interfaces'. 
  
         L1:  import { AngularFireDatabase } from 'angularfire2/database';
         L2:  import { FirebaseListFactoryOpts, FirebaseObjectFactoryOpts } from 'angularfire2/interfaces';
         L3:  import { AfoListObservable } from './list/afo-list-observable';
  
  [16:02:08]  typescript: node_modules/angularfire2-offline/database/interfaces.d.ts, line: 1 
              Cannot find module 'angularfire2/interfaces'. 
  
         L1:  import { FirebaseListFactoryOpts } from 'angularfire2/interfaces';
  
  [16:02:08]  typescript: node_modules/angularfire2-offline/database/list/afo-list-observable.d.ts, line: 1 
              Cannot find module 'angularfire2/interfaces'. 
  
         L1:  import { FirebaseListFactoryOpts } from 'angularfire2/interfaces';
         L2:  import { ReplaySubject } from 'rxjs/ReplaySubject';
  
  [16:02:08]  typescript: node_modules/angularfire2-offline/database/list/emulate-query.d.ts, line: 1 
              Cannot find module 'angularfire2/interfaces'. 
  
         L1:  import { FirebaseListFactoryOpts } from 'angularfire2/interfaces';
         L2:  export declare class EmulateQuery {
  </code></pre>
  
  <p><code>@ngModule</code> in <code>app.module.ts</code>:</p>
  
  <pre><code>@NgModule({
    declarations: [
      MyApp,
      HomePage
    ],
    imports: [
      BrowserModule,
      IonicModule.forRoot(MyApp),
      AngularFireModule.initializeApp(firebaseConfig),
      AngularFireDatabaseModule,
      AngularFireOfflineModule
    ],
    bootstrap: [IonicApp],
    entryComponents: [
      MyApp,
      HomePage
    ],
    providers: [
      StatusBar,
      SplashScreen,
      {provide: ErrorHandler, useClass: IonicErrorHandler}
    ]
  })
  export class AppModule {}
  </code></pre>
  
  <p>Versions:</p>
  
  <ul>
  <li>Ionic 3.9.2</li>
  <li>CLI 3.8 </li>
  <li>angularfire2 4.0.0</li>
  <li>angularfire2-offline 4.2.4</li>
  <li>firebase 4.3.0</li>
  <li>typescript 2.6.0</li>
  </ul>
  
  <p>I was following the two tutorials:</p>
  
  <p><a href="https://github.com/adriancarriger/angularfire2-offline" rel="nofollow noreferrer">https://github.com/adriancarriger/angularfire2-offline</a>
  and
  <a href="https://javebratt.com/offline-angularfire2/" rel="nofollow noreferrer">https://javebratt.com/offline-angularfire2/</a></p>
  
  <p>The error suddenly occured.</p>