I’m getting this error when publishing a detached project. I’m using this package https://github.com/razorpay/react-native-razorpay.
Failed to publish package: 500 - “{"type":"AmbiguousModuleResolutionError","message":"Ambiguous resolution: module ‘/Users/anjalsaneen/Workspace/ceet-react_native/App.js’ tries to require ‘react-native’, but there are several files providing this module. You can delete or fix them: \n\n/Users/anjalsaneen/Workspace/ceet-react_native/node_modules/react-native-razorpay/node_modules/react-native/package.json\n\n/Users/anjalsaneen/Workspace/ceet-react_native/node_modules/react-native/package.json","errors":[{"description":"Ambiguous resolution: module ‘/Users/anjalsaneen/Workspace/ceet-react_native/App.js’ tries to require ‘react-native’, but there are several files providing this module. You can delete or fix them: \n\n/Users/anjalsaneen/Workspace/ceet-react_native/node_modules/react-native-razorpay/node_modules/react-native/package.json\n\n/Users/anjalsaneen/Workspace/ceet-react_native/node_modules/react-native/package.json"}]}”
Error Image: Imgur: The magic of the Internet