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

After installation got the below error.can anyone help? #117

Closed
rajkishoreandia opened this issue Sep 29, 2018 · 16 comments
Closed

After installation got the below error.can anyone help? #117

rajkishoreandia opened this issue Sep 29, 2018 · 16 comments

Comments

@rajkishoreandia
Copy link

Loading dependency graph...jest-haste-map: @providesModule naming collision:
Duplicate module name: Sample
Paths: /Users/uniquecreations/Desktop/latest-app/donate-us-pay/node_modules/react-native-razorpay/node_modules/react-native/Libraries/Sample/package.json collides with /Users/uniquecreations/Desktop/latest-app/donate-us-pay/node_modules/react-native/Libraries/Sample/package.json

This warning is caused by a @providesModule declaration with the same name across two different files.
jest-haste-map: @providesModule naming collision:

@iThink32
Copy link
Contributor

iThink32 commented Oct 1, 2018

@rajkishoreandia please update to the latest version of our package and try again.

@rajkishoreandia
Copy link
Author

got the same error:

This warning is caused by a @providesModule declaration with the same name across two different files.
jest-haste-map: @providesModule naming collision:
Duplicate module name: react-animated
Paths: /Users/uniquecreations/Desktop/Donate_Us_Current/node_modules/react-native-razorpay/node_modules/react-native/Libraries/Animated/release/package.json collides with /Users/uniquecreations/Desktop/Donate_Us_Current/node_modules/react-native/Libraries/Animated/release/package.json

@iThink32
Copy link
Contributor

iThink32 commented Oct 1, 2018

@rajkishoreandia its a derived data issue , delete node modules and install it again and make sure your installing the latest version of react - native - razorpay.
If you look closely at our package we don't even have a node module folder.

@rajkishoreandia
Copy link
Author

rajkishoreandia commented Oct 1, 2018

after removing and reinstalling also i got the same error the issue is actually i have react-native package inside my node module and one more react-native-node module is inside react-native-razorpay node modules.so its giving duplication error

Error

Ambiguous module resolution from /Users/uniquecreations/Desktop/Donate_Us_Current/index.js: The name react-native was looked up in the Haste module map. It cannot be resolved, because there exists several different files, or packages, that provide a module for that particular name and platform. The platform is generic (no extension). You must delete or blacklist files until there remains only one of these:

  • /Users/uniquecreations/Desktop/Donate_Us_Current/node_modules/react-native-razorpay/node_modules/react-native/package.json (package)
  • `/Users/uniquecreat

@iThink32
Copy link
Contributor

iThink32 commented Oct 1, 2018

@rajkishoreandia this is a react-native issue , it is not related to razorpay , but yes you should blacklist files to make it work.Please check on other forums for an appropriate solution.

@Balasnest
Copy link

@rajkishoreandia Me too facing this exact issue. Did you resolve this?

@iThink32
Copy link
Contributor

iThink32 commented Oct 3, 2018

closing due to inactivity.

@iThink32 iThink32 closed this as completed Oct 3, 2018
@santhosh77h
Copy link

@iThink32 this issue still exists by removing react-native-razorpay if I run my application it works fine.
so i guess it may be issue may be from razorpay and even my package.json under react-native-razorpay has "dependencies": { "react": "16.5.0", "react-native": "0.57.1" },.
Do you have any solution for this?

@iThink32
Copy link
Contributor

@santhosh77h i'm not sure what issue is it that you are facing can you elaborate?

@iThink32
Copy link
Contributor

@santhosh77h please reopen issues before commenting.

@iThink32 iThink32 reopened this Oct 31, 2018
@santhosh77h
Copy link

santhosh77h commented Nov 1, 2018

@iThink32 react-native-razorpay has a dependency on react-native but I have read somewhere that is not good practice because of that we were getting this https://github.com/facebook/react-native/issues/15789

@iThink32
Copy link
Contributor

iThink32 commented Nov 2, 2018

@santhosh77h react-native is a very important module without adding which i don't think our component or any component will work. As you have read it elsewhere please share the link here so that even I can learn a better approach of using dependencies.

@santhosh77h
Copy link

@iThink32 I think react-native should be devDepenency not under dependencies because of which user has a different version then what is mentioned in your package.json it throws that Ambiguous error telling that there are multiple react-native versions available

@iThink32
Copy link
Contributor

iThink32 commented Nov 2, 2018

@santhosh77h ok so specifying devDependancy does not add react-native to the directory containing the package installed which intern resolves the "ambiguous issue" is what your saying right?

ive also read this link
https://stackoverflow.com/questions/18875674/whats-the-difference-between-dependencies-devdependencies-and-peerdependencies

ok thanks will try this out.

@santhosh77h
Copy link

yes, you are correct.....

@iThink32
Copy link
Contributor

iThink32 commented Nov 2, 2018

@santhosh77h thanks for the heads up and im assuming that your issue has been fixed.Closing this issue reopen if issue persists.

@iThink32 iThink32 closed this as completed Nov 2, 2018
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