onmyway133 / notes

:notebook_with_decorative_cover: Issues and solutions I found during development, mostly iOS
https://onmyway133.com/
MIT License
63 stars 4 forks source link

RN: Duplicate module name: react-native #351

Open onmyway133 opened 6 years ago

onmyway133 commented 6 years ago
Loading dependency graph...(node:15556) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: jest-haste-map: @providesModule naming collision:
  Duplicate module name: react-native
  Paths: /Users/khoa/XcodeProject2/MyApp/node_modules/react-native/package.json collides with /Users/khoa/XcodeProject2/MyApp/ios/Pods/React/package.json
This error is caused by a @providesModule declaration with the same name across two different files.
(node:34363) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
onmyway133 commented 6 years ago

rm -rf ios/build

Change /Users/khoa/XcodeProject2/MyApp/ios/Pods/React/package.json to something else

"name": "react-native-for-camera"

non recursive

abc

onmyway133 commented 6 years ago

https://medium.com/@jeanjacquesbagui/react-native-providesmodule-naming-collision-error-6bc090925fb3

onmyway133 commented 6 years ago

https://github.com/react-native-community/react-native-camera/issues/1747