Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate module name: react-animated #93

Closed
2 of 4 tasks
ghost opened this issue Jul 12, 2018 · 7 comments
Closed
2 of 4 tasks

Duplicate module name: react-animated #93

ghost opened this issue Jul 12, 2018 · 7 comments

Comments

@ghost
Copy link

ghost commented Jul 12, 2018

Upgraded my react-native project to 0.56

IDE Specs

{
    buildToolsVersion = "26.0.3"
    minSdkVersion = 16
    compileSdkVersion = 26
    targetSdkVersion = 26
    supportLibVersion = "26.1.0"
}

Razorpay Package Version: 2.0.5

Retro Steps

I have upgraded my react-native version to 0.56 from 0.55

react-native start
react-native run-android.

Error message

error: bundling failed: Error: jest-haste-map: @providesModule naming collision:
  Duplicate module name: react-animated
  Paths: .../node_modules/react-native-razorpay/node_modules/react-native/Libraries/Animated/release/package.json collides with .../node_modules/react-native/Libraries/Animated/release/package.json
@hariramsvnit
Copy link
Contributor

@km16 Can you delete react-native folder from /node_modules/react-native-razorpay/node_modules and try.

@ghost
Copy link
Author

ghost commented Jul 13, 2018

That doesn't help much. Every time I add or remove a package. I would have to do that. It's not a do once and forget solution.

@hariramsvnit
Copy link
Contributor

@km16 None of our other merchants faced a similar issue. You can have a look at the project's package.json(https://github.com/razorpay/react-native-razorpay/blob/master/package.json) and if some change works for you, you can file a PR.

@iThink32
Copy link
Contributor

iThink32 commented Sep 3, 2018

closing due to inactivity

@iThink32 iThink32 closed this as completed Sep 3, 2018
@Balasnest
Copy link

Balasnest commented Oct 2, 2018

Razorpay Package Version: 2.0.13

bundling failed: Error: jest-haste-map: @providesModule naming collision:
  Duplicate module name: react-native
  Paths: .../node_modules/react-native-razorpay/node_modules/react-native/package.json collides with .../node_modules/react-native/package.json

@iThink32 @hariramsvnit I am still facing this issue . Tired uninstall package, removing node_modules. Did't work.
@km16 How did you solve this problem?

@essuraj
Copy link

essuraj commented Oct 3, 2018

@Balasnest I upgraded to 0.57.1 and for some reason, the error went away... no definitive answer

@iThink32
Copy link
Contributor

iThink32 commented Oct 3, 2018

@Balasnest React-native for Xcode 10 is extremely unstable.Please update at your own discretion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants