angular / angularfire

Angular + Firebase = ❤️
https://firebaseopensource.com/projects/angular/angularfire2
MIT License
7.67k stars 2.19k forks source link

Error with Analytics after updating to v17 #3491

Open sorcamarian opened 8 months ago

sorcamarian commented 8 months ago
homepage.component.ts:1194 ERROR TypeError: app.analytics is not a function
    at angular-fire-compat-analytics.mjs:128:39
    at ɵcacheInstance (angular-fire-compat.mjs:146:29)
    at angular-fire-compat-analytics.mjs:127:34
    at map.js:7:37
    at OperatorSubscriber._next (OperatorSubscriber.js:13:21)
    at OperatorSubscriber.next (Subscriber.js:31:18)
    at subscribe.innerSubscriber (switchMap.js:14:144)
    at OperatorSubscriber._next (OperatorSubscriber.js:13:21)
    at OperatorSubscriber.next (Subscriber.js:31:18)
    at innerFrom.js:61:28

I just updated to Angular 17 and AngularFire 17

google-oss-bot commented 8 months ago

This issue does not seem to follow the issue template. Make sure you provide all the required information.

sorcamarian commented 8 months ago

I updated firebase to v10 from v9 and now I don't see errors.

I see that AngularFire requires v12 of firebase-tools and not the latest v13