Error: mixpanel-react-native: MixpanelReactNative is null
Hey there, we've followed the steps and instructions provided but this bug is still persisting.
Error: mixpanel-react-native: MixpanelReactNative is null. Please follow the guide on the Github repository: https://github.com/mixpanel/mixpanel-react-native. at node_modules/react-native/Libraries/Core/ExceptionsManager.js:104:6 in reportException at node_modules/react-native/Libraries/Core/ExceptionsManager.js:172:19 in handleException at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError at node_modules/expo-error-recovery/build/ErrorRecovery.fx.js:12:21 in ErrorUtils.setGlobalHandler$argument_0
Same issue here, using react-native-macos 0.66
Same on android mixpanel-react-native.
It looks to me like a linking issue.
Same error
Jup, same here in an expo managed workflow.
Calling constructor
new Mixpanel(project_token, trackAutomaticEvents)
Crashes with error mentioned above when executed in simulators or in Expo Go app on physical devices.
"react-native": "0.70.5",
"mixpanel-react-native": "^2.1.0",
"expo": "~47.0.9",
Also getting this error, only on Android
Still crashing on
"react-native": "0.71.8",
"expo": "^48.0.0",
"mixpanel-react-native": "^2.2.5",
Anyone have a work around?
fixed in v2.3.0. Feel free to reopen if the problem still exists.
Error: mixpanel-react-native: MixpanelReactNative is null.
Still getting this error. mixpanel-react-native: ^2.3.1 react-native: 0.71.8
import { Mixpanel } from 'mixpanel-react-native';
const mixpanel = new Mixpanel(projectToken, true);
Same issue as @helians11
"mixpanel-react-native": "^2.3.1", "react-native": "0.72.5",
Just using the sample code:
const mixpanel = new Mixpanel("Token Val", true);
mixpanel.init();
mixpanel.setLoggingEnabled(true);