-
Notifications
You must be signed in to change notification settings - Fork 107
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-native #129
Comments
@sjenit this is due to a derived data issue , I request you to delete it and try again , moreover if you look closely at our package we do not have a node modules folder anymore. |
@iThink32 Issue still persists. I tried deleting react-native-razorpay and running npm install. |
@iThink32 There is no one time fix for this problem. Its keep arising whenever do npm install. We need to repeat the step again and again to resolve.
After doing this, most of the time node_modules appear again. |
@Balasnest its a react-native issue , I told you in the beginning itself react-native is not at all stable for Xcode 10 , coming to our package as I mentioned we do not ship node_modules , you can have a look at the new package yourself. |
I just deleted the node module folder from react-native-razorpay, it worked for me, maybe will work for you too. |
@amrita019 our latest framework does not contain a node modules folder , please check our latest framework carefully. |
closing due to inactivity. |
@iThink32 will that latest framework works in react-native: 0.56 and Xcode: 9.3 | 9.4 ? Which is stable one for 0.56? |
@Balasnest please reopen issues before commenting.Anyway our latest framework will only work on Xcode 10 , react-native i.e 0.57.1 ,react version 16.5.0 and above. |
@iThink32 if I remove the
react-native 0.57.2 Pleas help? |
@jinxac Try removing |
@jinxac no this is not a good fix , it is working fine for me ,try the example on this repo on a separate folder.React-native is unstable for Xcode 10 , delete derived data , stop your metro bundler instance and try again.Also google for alternative solutions. |
closing due to inactivity. |
I'm getting the same error, how can i resolve it. |
remove |
that just one time fix, next time if i do npm install the node module folder will regenerate again @jinxac |
@paddy57 Try blacklisting the directory. |
@paddy57 yes blacklisting is the right way forward but pls analyse the directories that you are blacklisting. |
use "react-native-razorpay": "https://github.com/ashutoshshubam/react-native-razorpay", |
@ashutoshshubam I appreciate that you have forked react-native-razorpay and are trying to help but in such a case a user following your advice will not be able to run npm update and get the latest updates from us , it would be better if you could post your solution instead and give your repo's link as a reference to it. |
@iThink32 actually its not possible without forking because react-native-razorpay is using react-native": "0.57.1 and they have both have their own package.json so when ever you run npm install it will give error at run time so can you tell me a better way to do that. |
@ashutoshshubam what error are you facing? If it is an ambiguous reference issue then blacklist the conflicting directory , that's what I did. |
@iThink32 can you share you repo or some link. |
@ashutoshshubam you will easily get references regarding blacklisting , anyway I've just found one now The example folder of this repo contains a file called rn-cli.config.js in which I have blacklisted a particular directory.You can see that for reference. |
it's work for me |
Non of the solution fixes my error. I have the same error. |
@erkrujjawal786, for now, use this:-"react-native-razorpay": "https://github.com/ashutoshshubam/react-native-razorpay", |
Getting above error after upgrading to latest version (2.0.13) of the package.
clean
and npm--reset-cache
already tried but didn't work.Issue is quite similar to:
#93
#42
The text was updated successfully, but these errors were encountered: