Closed adamhari closed 1 year ago
Updated @segment/analytics-react-native-plugin-firebase from 0.3.4 to 0.3.9 and I am now getting this error when I call Segment functions. My @react-native-firebase deps are at 17.4.3.
@segment/analytics-react-native-plugin-firebase
0.3.4
0.3.9
@react-native-firebase
17.4.3
Usage:
const segmentClient = createClient({ writeKey: writeKey, debug: debug, trackAppLifecycleEvents: false, }); segmentClient.add({ plugin: new FirebasePlugin() }); segmentClient.track('event', {});
analytics-react-native
Steps to reproduce
Call track on the analytics instance.
track
Expected behavior No errors.
Actual behavior TypeError: Cannot read property 'PluginError' of undefined
TypeError: Cannot read property 'PluginError' of undefined
The issue was I had multiple versions of @segment/analytics-react-native (2.8.0 and 2.14.0) in my dependency tree
@segment/analytics-react-native
Updated
@segment/analytics-react-native-plugin-firebase
from0.3.4
to0.3.9
and I am now getting this error when I call Segment functions. My@react-native-firebase
deps are at17.4.3
.Usage:
analytics-react-native
version: 2.14.0Steps to reproduce
Call
track
on the analytics instance.Expected behavior No errors.
Actual behavior
TypeError: Cannot read property 'PluginError' of undefined