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

Removing react native dependency from package.json #42

Closed
mcd50 opened this issue Nov 25, 2017 · 17 comments
Closed

Removing react native dependency from package.json #42

mcd50 opened this issue Nov 25, 2017 · 17 comments

Comments

@mcd50
Copy link

mcd50 commented Nov 25, 2017

Hey,
Current version is causing error because it has react-native in its dependencies.

-----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: PanResponder
Paths: #/node_modules/react-native-razorpay/node_modules/react-native/Libraries/Interaction/PanResponder.js collides with #/react-native/Libraries/Interaction/PanResponder.js

This will be solved if you remove react-native from dependency.
Thanks

@himanshu-dixit
Copy link

Do this

watchman watch-del-all
rm -rf node_modules && npm install
rm -fr $TMPDIR/react-*
npm cache clean
npm start -- --reset-cache

@iThink32
Copy link
Contributor

iThink32 commented Apr 19, 2018

closing due to inactivity , please reopen if issue persists.
Note:- update your package before you try as we have a new version on board!

@Shanie1331
Copy link

Shanie1331 commented May 12, 2018

HI Please help me, getting the following error while installing rules for eslint:

D:\react native\portfolio>npm install --save-dev eslint-config-rallycoding
npm WARN deprecated eslint-plugin-class-property@1.1.0: please use eslint-plugin-babel and babel/semi
npm WARN rm not removing D:\react native\portfolio\node_modules.bin\uuid.cmd as it wasn't installed by D:\react native\portfolio\node_modules\uuid
npm WARN rm not removing D:\react native\portfolio\node_modules.bin\uuid as it wasn't installed by D:\react native\portfolio\node_modules\uuid
npm WARN rm not removing D:\react native\portfolio\node_modules.bin\jsesc.cmd as it wasn't installed by D:\react native\portfolio\node_modules\jsesc
npm WARN rm not removing D:\react native\portfolio\node_modules.bin\jsesc as it wasn't installed by D:\react native\portfolio\node_modules\jsesc
npm WARN rm not removing D:\react native\portfolio\node_modules.bin\esparse.cmd as it wasn't installed by D:\react native\portfolio\node_modules\esprima
npm WARN rm not removing D:\react native\portfolio\node_modules.bin\esvalidate.cmd as it wasn't installed by D:\react native\portfolio\node_modules\esprima
npm WARN rm not removing D:\react native\portfolio\node_modules.bin\esparse as it wasn't installed by D:\react native\portfolio\node_modules\esprima
npm WARN rm not removing D:\react native\portfolio\node_modules.bin\esvalidate as it wasn't installed by D:\react native\portfolio\node_modules\esprima
npm ERR! Maximum call stack size exceeded

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\shash\AppData\Roaming\npm-cache_logs\2018-05-12T14_07_09_951Z-debug.log

@iThink32
Copy link
Contributor

I think you have posted it in the wrong place , are you sure this issue is related with react-native-razorpay package?

@iThink32 iThink32 reopened this May 14, 2018
@iThink32
Copy link
Contributor

closing due to inactivity , please reopen if required.

@91ranjan
Copy link

91ranjan commented May 29, 2018

Hey i am still having the same issue.

jest-haste-map: @providesModule naming collision:
  Duplicate module name: DrawerLayoutAndroid
  Paths: /Users/vsts/agent/2.133.3/work/1/s/node_modules/react-native-razorpay/node_modules/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.ios.js collides with /Users/vsts/agent/2.133.3/work/1/s/node_modules/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.ios.js

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: Keyboard
  Paths: /Users/vsts/agent/2.133.3/work/1/s/node_modules/react-native-razorpay/node_modules/react-native/Libraries/Components/Keyboard/Keyboard.js collides with /Users/vsts/agent/2.133.3/work/1/s/node_modules/react-native/Libraries/Components/Keyboard/Keyboard.js

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: KeyboardAvoidingView
  Paths: /Users/vsts/agent/2.133.3/work/1/s/node_modules/react-native-razorpay/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js collides with /Users/vsts/agent/2.133.3/work/1/s/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js

Many more of these..

I did these steps :

rm -rf /tmp/metro-bundler-cache-*
rm -rf /tmp/haste-map-react-native-packager-*
rm -rf node_modules && yarn
npm start -- --reset-cache

@iThink32 Is there a way i can get in touch with you?

@rajatbeck
Copy link

Facing same issue ? can some one tell me how to resolve it?

@iThink32
Copy link
Contributor

can you tell me what exactly is your issue?.Please reopen issues before commenting.

@iThink32 iThink32 reopened this Jun 21, 2018
@mcd50
Copy link
Author

mcd50 commented Jun 21, 2018

Hi @iThink32
Please look at mcd50@3cf6017

This should fix the issue

@iThink32
Copy link
Contributor

iThink32 commented Jun 21, 2018

@mcd50 please do not do this as this dependancy means that it requires that specific react-native version or higher to work.

Please read about dependancies and peerDependancies in this link
https://lexi-lambda.github.io/blog/2016/08/24/understanding-the-npm-dependency-model/

@iThink32
Copy link
Contributor

iThink32 commented Jun 21, 2018

@mcd50 If you have faced an issue in the past and have fixed it like the way you have said let me know , I will give you a legitimate fix.

@rajatbeck
Copy link

simulator screen shot - iphone 6 - 2018-06-20 at 18 02 19

I am facing this issue with the react-native resolution .Kindly have a look into this issue.

@iThink32
Copy link
Contributor

this seems more of a generic react native issue to me as there is no mention of react-native-razorpay.Nonetheless can you tell me how you have integrated it so that I can cross check and let you know if you've done something wrong.

@iThink32
Copy link
Contributor

closing due to inactivity

@ghost
Copy link

ghost commented Sep 7, 2018

hi

i am an error saying Duplicate module name : react-native
error: bundling failed: Error: jest-haste-map: @providesModule naming collision:

Duplicate module name: react-native
Paths: C:\App\node_modules\react-native-razorpay\node_modules\react-nativ
e\package.json collides with C:\lApp\node_modules\react-native\package.json

After i remove the react-native library from razorpay's node modules folder, this issues is getting resolved. But after i run npm install for any other plugin, again the same issue is happening. Please let me know what change i should make in package.json of Razorpay

@iThink32
Copy link
Contributor

iThink32 commented Sep 7, 2018

hey @dinyrepo I guess this is due to react-native's inconsistency , please stop the metro bundler instance , disintegrate and reintegrate it.Also please reopen issues before commenting.

@iThink32 iThink32 reopened this Sep 7, 2018
@iThink32
Copy link
Contributor

closing due to inactivity.

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

6 participants