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
{{ message }}
Repository navigation
compilation errors every time a new version of firebase is used #3245
I'm sorry if this issue doesn't actually have anything to do with Angularfire, and if it looks more like a question than an actual issue.
Feel free to close this issue if you feel it doesn't belong here.
I use yarn and have configured renovate bot on my project. So every time a new version of Firebase is released, it makes a commit which upgrades the version. And almost every time it does that (like in this PR, which upgrades from firebase 9.8.4 to firebase 9.9.0), the code, which compiled fine before, dosn't compile anymore, with errors such as the following one:
Error: Error: src/app/activity/activity.service.ts:185:5 - error TS2322: Type 'Observable<(string | FieldValue)[]>' is not assignable to type 'Observable<string[]>'.
Type '(string | FieldValue)[]' is not assignable to type 'string[]'.
Type 'string | FieldValue' is not assignable to type 'string'.
Type 'FieldValue' is not assignable to type 'string'.
185 return collectionData(this.animatorCollection).pipe(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
186 first(),
~~~~~~~~~~~~~~
...
193 )
~~~~~~~
194 );
Hello, I have the same problem when upgrading @angular/fire from 7.6.1 to 17.1.0
I didn't find any migration documentation.
the snippet below worked in 7.6.1
asyncgetTask(id: string): Promise<TaskModel>{consttaskRef=doc(getFirestore(),"task/1").withConverter(taskConverter);consttaskSnapshot=awaitgetDoc(taskRef);returntaskSnapshot.data();// <-- error on this line}
But now in 17.1.0, I have Type 'FieldValue' is not assignable to type 'string'. for each field.
Can you help please ? any idea ?
Activity
google-oss-bot commentedon Jul 8, 2022
This issue does not seem to follow the issue template. Make sure you provide all the required information.
salifukayta commentedon Nov 8, 2024
Hello, I have the same problem when upgrading @angular/fire from 7.6.1 to 17.1.0
I didn't find any migration documentation.
the snippet below worked in 7.6.1
But now in 17.1.0, I have
Type 'FieldValue' is not assignable to type 'string'.for each field.Can you help please ? any idea ?