mixpanel-react-native icon indicating copy to clipboard operation
mixpanel-react-native copied to clipboard

Error: mixpanel-react-native: MixpanelReactNative is null

Open ewisaac opened this issue 3 years ago • 1 comments

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

ewisaac avatar Jun 06 '22 19:06 ewisaac

Same issue here, using react-native-macos 0.66

k1mmm avatar Jun 22 '22 12:06 k1mmm

Same on android mixpanel-react-native.

It looks to me like a linking issue.

ofirgeller avatar Dec 21 '22 05:12 ofirgeller

Same error

fkeloks avatar Jan 01 '23 16:01 fkeloks

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",

laubsauger avatar Jan 18 '23 16:01 laubsauger

Also getting this error, only on Android

zachdorcinville21 avatar Jan 19 '23 16:01 zachdorcinville21

Still crashing on

"react-native": "0.71.8",
"expo": "^48.0.0",
"mixpanel-react-native": "^2.2.5",

Anyone have a work around?

GwFreak01 avatar Jun 06 '23 05:06 GwFreak01

fixed in v2.3.0. Feel free to reopen if the problem still exists.

zihejia avatar Jun 17 '23 00:06 zihejia

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);

helians11 avatar Sep 28 '23 08:09 helians11

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);

OOCAZ avatar Oct 17 '23 21:10 OOCAZ