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

Resolve duplicate dependency issue with async-storage

Open vonkanehoffen opened this issue 3 months ago • 4 comments

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?

vonkanehoffen avatar Sep 22 '25 09:09 vonkanehoffen

i have same)

ZaharGusyatin avatar Sep 23 '25 07:09 ZaharGusyatin

Currently fixed with

    "overrides": {
      "@react-native-async-storage/async-storage": "2.2.0"
    }

@ZaharGusyatin but obviously this ain't great

vonkanehoffen avatar Sep 23 '25 11:09 vonkanehoffen

same

marco242424 avatar Oct 11 '25 10:10 marco242424

This PR could fix the issue: https://github.com/mixpanel/mixpanel-react-native/pull/327

please @jaredmixpanel could you take a look at this ?

theohdv avatar Dec 03 '25 09:12 theohdv