I am Getting below Error in Auth.d.ts file in Node_Modules Package.
[ts] Module 'node_modules/rxjs/Observable"' has no exported member 'Observable'. import Observable
Find the below code for Auth.d.ts file :
import * as firebase from 'firebase/app';
import 'firebase/auth';
import { Observable } from 'rxjs/Observable';
import { FirebaseApp } from '../app/index';
export declare class AngularFireAuth {
app: FirebaseApp;
auth: firebase.auth.Auth;
authState: Observable<firebase.User>;
idToken: Observable<firebase.User>;
constructor(app: FirebaseApp);
}
export declare function FirebaseAuthStateObservable(app: FirebaseApp): Observable<firebase.User>;
export declare function FirebaseIdTokenObservable(app: FirebaseApp): Observable<firebase.User>;
I installed "npm install @reactivex/rxjs" this package also even then I am getting above error
Try changing it to:
import { Observable } from 'rxjs';
Try npm install rxjs-compat
or yarn add rxjs-compat
.
It's works for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With