question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicate module name: react-animated

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
hariramsvnitcommented, Jul 12, 2018

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

4reactions
ghostcommented, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicate Module Name: react-native - Stack Overflow
The root cause of this issue is that there are more that one copy of react-native module in your watch folders (including the...
Read more >
Duplicate module name: react-animated · Issue #2 - GitHub
When attempting to install highcharts-react-native I get the following error in terminal: npm ... Duplicate module name: react-animated #2.
Read more >
iOS : Duplicate Module Name: react-native - YouTube
iOS : Duplicate Module Name : react -native [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ] iOS : Duplicate Module Name : ......
Read more >
metro-config | React Native Developer Tools
First, we need to add two files to the target package, babel.config.js and metro.config.js : // babel.config.js ... Duplicate module name: react-animated
Read more >
Examples | Framer for Developers
Simple examples for animation, gestures, components, transforms and more.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found