angularfire: Missing exported members after updating to Angular 6.0.0

Version info

Angular: 6.0.0

Firebase: 4.13.1

AngularFire2: 5.0.0-rc.6

Debug output

ERROR in node_modules/angularfire2/angularfire2.d.ts(3,10): error TS2305: Module '"C:/Users/sven/PhpstormProjects/ngx-mark6/node_modules/rxjs/Subscription"' has no exported member 'Subscription'.
node_modules/angularfire2/firebase.app.module.d.ts(10,22): error TS2720: Class 'FirebaseApp' incorrectly implements class 'FirebaseApp'. Did you mean to extend 'FirebaseApp' and inherit its members as a subclass?
  Property 'automaticDataCollectionEnabled' is missing in type 'FirebaseApp'.
node_modules/angularfire2/firestore/collection/changes.d.ts(2,10): error TS2305: Module '"C:/Users/sven/PhpstormProjects/ngx-mark6/node_modules/rxjs/Observable"' has no exported member 'Observable'.
node_modules/angularfire2/firestore/collection/collection.d.ts(2,10): error TS2305: Module '"C:/Users/sven/PhpstormProjects/ngx-mark6/node_modules/rxjs/Observable"' has no exported member 'Observable'.
node_modules/angularfire2/firestore/document/document.d.ts(2,10): error TS2305: Module '"C:/Users/sven/PhpstormProjects/ngx-mark6/node_modules/rxjs/Observable"' has no exported member 'Observable'.
node_modules/angularfire2/firestore/firestore.d.ts(2,10): error TS2305: Module '"C:/Users/sven/PhpstormProjects/ngx-mark6/node_modules/rxjs/Observable"' has no exported member 'Observable'.
node_modules/angularfire2/firestore/interfaces.d.ts(1,10): error TS2305: Module '"C:/Users/sven/PhpstormProjects/ngx-mark6/node_modules/rxjs/Subscriber"' has no exported member 'Subscriber'.
node_modules/angularfire2/firestore/observable/fromRef.d.ts(2,10): error TS2305: Module '"C:/Users/sven/PhpstormProjects/ngx-mark6/node_modules/rxjs/Observable"' has no exported member 'Observable'.

Personal statement

Today i updated to latest Angular Version (6.0.0) now i got in some npm package the error, that exported members are missing.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 26
  • Comments: 25 (2 by maintainers)

Most upvoted comments

It looks like rxjs-compat is missing. Use npm i rxjs-compat to install the missing rxjs-compat.

The issue is gone when changed the import to import { Observable } from 'rxjs';

Angular Update instructions specified removing rxjs-compat.

Awesome. Works great. Lost without that piece of advice. Thanks

If you’re reading this, adding rxjs-compat is not the “correct” way to solve a compatibility issue. That being said, it might be the only way. Your bundle size will now increase.