Angular 6 and AngularFire2 RxJS Error


I want to create a new Angular 6 App with AngularFire 2. Although I followed the tutorial, I get a version error.

AngularFire2 Setup Tutorial:

Even though I only tried to use an Observable as seen in the tutorial I get the following error:

ERROR in node_modules/angularfire2/angularfire2.d.ts(3,10): error TS2305: Module '"/Users/tarek/Documents/Development/web_app/apphoven-web/node_modules/rxjs/Subscription"' has no exported member 'Subscription'.
node_modules/angularfire2/firestore/collection/changes.d.ts(3,10): error TS2305: Module '"/Users/tarek/Documents/Development/web_app/apphoven-web/node_modules/rxjs/Observable"' has no exported member 'Observable'.
node_modules/angularfire2/firestore/collection/collection.d.ts(3,10): error TS2305: Module '"/Users/tarek/Documents/Development/web_app/apphoven-web/node_modules/rxjs/Observable"' has no exported member 'Observable'.
node_modules/angularfire2/firestore/document/document.d.ts(3,10): error TS2305: Module '"/Users/tarek/Documents/Development/web_app/apphoven-web/node_modules/rxjs/Observable"' has no exported member 'Observable'.
node_modules/angularfire2/firestore/firestore.d.ts(3,10): error TS2305: Module '"/Users/tarek/Documents/Development/web_app/apphoven-web/node_modules/rxjs/Observable"' has no exported member 'Observable'.
node_modules/angularfire2/firestore/interfaces.d.ts(1,10): error TS2305: Module '"/Users/tarek/Documents/Development/web_app/apphoven-web/node_modules/rxjs/Subscriber"' has no exported member 'Subscriber'.
node_modules/angularfire2/firestore/observable/fromRef.d.ts(2,10): error TS2305: Module '"/Users/tarek/Documents/Development/web_app/apphoven-web/node_modules/rxjs/Observable"' has no exported member 'Observable'.
node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Observable'.
node_modules/rxjs/Subscriber.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Subscriber'.
node_modules/rxjs/Subscription.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Subscription'.

Am I correct that AngularFire 2 does not support Angular 6? Because it's not written anywhere. And I don't think it's a good idea to downgrade to the old Angular CLI... So, what can I do?

Suliman Farzat

now work with

npm install --save rxjs-compat

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at


Login to comment


Angular8 firebase configuration error '@angular/fire/angularfire2'

Angular 6 RXJS Import Syntax?

Angular 6 / Rxjs - how to basics: observables success, error, finally

Angular2 Rxjs 404 error

Angularfire2 and Rxjs Observable Not firing Catch and Complete Methods

Angular2 rxjs - switchmap catch error

Angular 4 with AngularFire2

error TS2345 Angular AngularFire2 checking if user isAdmin

How to implement SSR with Angular 6 and AngularFire2

Error: Cannot find module "angularfire2/database-deprecated" appmodule ionic 3, Angularfire2

Angular 6: Module not found error regarding RxJs

Can not have access to multiple Google Firestore DB in Angular 6 application with angularfire2

How to keep observable alive after error in RxJS 6 and Angular 6

Convert Rxjs code to Angular 6 and latest rxjs

Is this the correct way to use rxjs MergeMap in angularfire2?

error in npm installing angularfire2 and firebase

Compile error after update Angular and RxJS 5 to 6

swagger codegen --> angular6: rxjs observable compile error

Angularfire2 compiling issues in Angular 5.2

Angular 6 / RxJs 6 Observable merging that also skips to error block

How to solve rxjs Typescript error (Ionic 3, angularfire2)

rxjs 6 countdown timer subscribe angular 6

reverse an observable array in angularfire2 angular 6

Angular2 and Firebase (AngularFire2)

Error in Angular and RXJS promise

Angular not pulling data through Angularfire2

TypeError: changes.payload.docChanges is not a function in Angular 6 using AngularFire2 v5-rc9

rxjs 6 pipe is not working in Angular 6

error about angular2-jwt, Cannot find module 'rxjs-compat/Observable (this module not works in Angular 6)

TOP Ranking