1
votes

I am working with Angular7, Angularfire2 5.1.0 and Firebase 5.5.8. After code a demo app I had the error:

"ERROR in src/app/app.component.ts(13,5): error TS2322: Type '(events?: ChildEvent[]) => Observable<{}[]>' is not assignable to type 'AngularFireList<{}>'. Property 'query' is missing in type '(events?: ChildEvent[]) => Observable<{}[]>'."

error screen

1
you should copy/paste your code and not take a pictureChristophe Chenel
More constructive comment : you must subscribe to your AngularFireListChristophe Chenel

1 Answers

0
votes

I said you must subscribe. Here is an example:

this.db.list('/customers').valueChanges().subscribe((datas) => { console.log("datas", datas) },(err)=>{ console.log("probleme : ", err) });