Angular: 6.0.0
Firebase: 4.13.1
AngularFire2: 5.0.0-rc.6
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'.
Today i updated to latest Angular Version (6.0.0) now i got in some npm package the error, that exported members are missing.
+
I am also facing this issue across my app. Found this https://github.com/tiaguinho/material-community-components/pull/43 which may be useful
+1
in angular 6.0
node_modules/rxjs/BehaviorSubject.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/BehaviorSubject'.
node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Observable'.
node_modules/rxjs/Observer.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Observer'.
node_modules/rxjs/Operator.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Operator'.
node_modules/rxjs/ReplaySubject.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/ReplaySubject'.
node_modules/rxjs/Subject.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Subject'.
node_modules/rxjs/Subscription.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Subscription'.
src/app/fa/fa.component.ts(8,10): error TS2305: Module '"/Users/aaaaa/workspace/fs-tool/fs/fs-app/node_modules/rxjs/Ob
servable"' has no exported member 'Observable'.
You will need to upgrade to the latest angularfire2 rc.
On Tue, May 15, 2018, 11:18 AM Mr Patel notifications@github.com wrote:
node_modules/rxjs/BehaviorSubject.d.ts(1,15): error TS2307: Cannot find
module 'rxjs-compat/BehaviorSubject'.
node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module
'rxjs-compat/Observable'.
node_modules/rxjs/Observer.d.ts(1,15): error TS2307: Cannot find module
'rxjs-compat/Observer'.
node_modules/rxjs/Operator.d.ts(1,15): error TS2307: Cannot find module
'rxjs-compat/Operator'.
node_modules/rxjs/ReplaySubject.d.ts(1,15): error TS2307: Cannot find
module 'rxjs-compat/ReplaySubject'.
node_modules/rxjs/Subject.d.ts(1,15): error TS2307: Cannot find module
'rxjs-compat/Subject'.
node_modules/rxjs/Subscription.d.ts(1,15): error TS2307: Cannot find
module 'rxjs-compat/Subscription'.
src/app/fa/fa.component.ts(8,10): error TS2305: Module
'"/Users/aaaaa/workspace/fs-tool/fs/fs-app/node_modules/rxjs/Observable"' has no exported member 'Observable'.
—
You are receiving this because you modified the open/close state.Reply to this email directly, view it on GitHub
https://github.com/angular/angularfire2/issues/1593#issuecomment-389264016,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACvrx4MH2TaBw-U2n4P8q7jvvaXoD2-ks5tyxvbgaJpZM4TyVf1
.
It looks like rxjs-compat is missing. Use npm i rxjs-compat to install the missing rxjs-compat.
@miaupip thank you, that worked.
@miaupip thanks that worked for me too
worked for me too
Awesome. Works great. Lost without that piece of advice. Thanks
thanks lot @miaupip that is work
npm tried to mess with me but @miaupip solution worked for me using yarn.
@miaupip Thanks! The error is gone.
Thank you very much @miaupip !
Thanks a lot @miaupip !
Angular Update instructions specified removing rxjs-compat.
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.
npm i rxjs-compat worked . Thank you @miaupip
The issue is gone when changed the import to import { Observable } from 'rxjs';
The issue is gone when changed the import to
import { Observable } from 'rxjs';
Thx)
The above methods didn't work for me.
Importing from import { ObservableInput } from 'rxjs/Observable'; worked for me.
ERROR in node_modules/ng2-toastr/src/toast-container.component.d.ts:1:48 - error TS2305: Module '"S:/Edwisor/Practice-sites/Blog-application/blog-frontend/node_modules/@angular/core/core"' has no exported member 'AnimationTransitionEvent'.
1 import { ChangeDetectorRef, NgZone, OnDestroy, AnimationTransitionEvent } from '@angular/core';
plz help to get rid of this error
Parece que o rxjs-compat está ausente. Use
npm i rxjs-compatpara instalar o rxjs-compat ausente.
GG
Most helpful comment
It looks like rxjs-compat is missing. Use
npm i rxjs-compatto install the missing rxjs-compat.