I'm using firebase SDK version 8.0.2 and trying to log a 'screen_view' event but I'm getting an error that says:
Argument of type '"screen_view"' is not assignable to parameter of type '"add_payment_info"'
The linter seems like it's not reading the correct string value.
useEffect(() => {
if (subscribeActive) {
analytics.logEvent('screen_view')
}
}, [subscribeActive])
Related Github link, though OP doesn't specify how he fixed it: https://github.com/firebase/firebase-js-sdk/issues/3080