Currently utilizing firebase SDK version 8.0.2 and attempting to record a 'screen_view' event, encountering an error message stating:
Error: Argument of type '"screen_view"' is not assignable to parameter of type '"add_payment_info"'
Seems like the linter may be misinterpreting the string value.
useEffect(() => {
if (subscribeActive) {
analytics.logEvent('screen_view')
}
}, [subscribeActive])
For more information, check out the following Github link where the issue is discussed: https://github.com/firebase/firebase-js-sdk/issues/3080