angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

Error with Analytics after updating to v17

Open sorcamarian opened this issue 1 year ago • 2 comments
trafficstars

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

sorcamarian avatar Jan 08 '24 00:01 sorcamarian

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

google-oss-bot avatar Jan 08 '24 00:01 google-oss-bot

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

sorcamarian avatar Jan 08 '24 01:01 sorcamarian