mixpanel-react-native
mixpanel-react-native copied to clipboard
Resolve duplicate dependency issue with async-storage
Currently mixpanel-react-native has :
"dependencies": {
"@react-native-async-storage/async-storage": "^1.21.0",
This is a pretty old version. Expo currently recommend 2.2.0 and npx expo-doctor@latest (during update top Expo 54) complains:
✖ Check that no duplicate dependencies are installed
Your project contains duplicate native module dependencies, which should be de-duplicated.
Native builds may only contain one version of any given native module, and having multiple versions of a single Native module installed may lead to unexpected build errors.
Found duplicates for @react-native-async-storage/async-storage:
├─ @react-native-async-storage/[email protected] (at: node_modules/@react-native-async-storage/async-storage)
└─ @react-native-async-storage/[email protected] (at: node_modules/mixpanel-react-native/node_modules/@react-native-async-storage/async-storage)
Advice:
Resolve your dependency issues and deduplicate your dependencies. Learn more: https://expo.fyi/resolving-dependency-issues
Can we get the dependency in mixpanel-react-native bumped up to a compatible version range please?
i have same)
Currently fixed with
"overrides": {
"@react-native-async-storage/async-storage": "2.2.0"
}
@ZaharGusyatin but obviously this ain't great
same
This PR could fix the issue: https://github.com/mixpanel/mixpanel-react-native/pull/327
please @jaredmixpanel could you take a look at this ?