You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for generating this excellent tutorial. I am having one issue getting started and I was curious if you knew why.
In tutorial-list.component I'm getting the following error in retrieveposts()
retrieveposts(): void {
this.PostService.getAll().snapshotChanges().pipe(
map(changes =>
changes.map(c =>
({ id: c.payload.doc.id, ...c.payload.doc.data() }) <-TS2339: Property 'id' does not exist on type 'QueryDocumentSnapshot'.
)
)
).subscribe(data => {
this.posts = data;
});
}
I was curious if this was because I dont currently have any posts in my firestore, or if there could be another issue in this file. Note I relabeled everything that has "tutorial" in it to "post".
Thank you again for such a great tutorial and Happy New Year.
The text was updated successfully, but these errors were encountered:
Thank you for generating this excellent tutorial. I am having one issue getting started and I was curious if you knew why.
In tutorial-list.component I'm getting the following error in retrieveposts()
retrieveposts(): void {
this.PostService.getAll().snapshotChanges().pipe(
map(changes =>
changes.map(c =>
({ id: c.payload.doc.id, ...c.payload.doc.data() }) <-TS2339: Property 'id' does not exist on type 'QueryDocumentSnapshot'.
)
)
).subscribe(data => {
this.posts = data;
});
}
I was curious if this was because I dont currently have any posts in my firestore, or if there could be another issue in this file. Note I relabeled everything that has "tutorial" in it to "post".
Thank you again for such a great tutorial and Happy New Year.
The text was updated successfully, but these errors were encountered: