FirebaseObjectObservable import throwing an error


I am trying to import the FirebaseObjectObservable from ‘angularfire2/database’ but it seems an error is throwing saying this is not recognized as an import.

Has this been updated?



I believe so. Import a plain old observable instead. I’d check out the readme. There’s an example near the beginning


import { AngularFireDatabase, FirebaseObjectObservable } from ‘angularfire2/database-deprecated’

and in appmodule.ts

import { AngularFireDatabaseModule, } from ‘angularfire2/database-deprecated’;


i have an updated angularfire2 project here that used RTDB and not FireStore


What version of angularfire2 are you using?

In the latest version FirebaseObjectObservable and FirebaseListObservable are removed and instead we use : AngularFireObject & AngularFireList