Please help me, with android studio work but with Xcode return this error:
Loading dependency graph...(node:8622) UnhandledPromiseRejectionWarning: Error: jest-haste-map: Haste module naming collision:Duplicate module name: SamplePaths: /Users/xjabr/Documents/Works/rn-daniele/node_modules/react-native-html-to-pdf/example/node_modules/react-native/Libraries/Sample/package.json collides with /Users/xjabr/Documents/Works/rn-daniele/node_modules/react-native/Libraries/Sample/package.json
This error is caused by hasteImpl
returning the same name for different files.at setModule (/Users/xjabr/Documents/Works/rn-daniele/node_modules/metro/node_modules/jest-haste-map/build/index.js:569:17)at workerReply (/Users/xjabr/Documents/Works/rn-daniele/node_modules/metro/node_modules/jest-haste-map/build/index.js:641:9)at runMicrotasks ()at processTicksAndRejections (internal/process/task_queues.js:97:5)at async Promise.all (index 20387)(node:8622) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)(node:8622) [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.(node:8622) UnhandledPromiseRejectionWarning: Error: jest-haste-map: Haste module naming collision:Duplicate module name: SamplePaths: /Users/xjabr/Documents/Works/rn-daniele/node_modules/react-native-html-to-pdf/example/node_modules/react-native/Libraries/Sample/package.json collides with /Users/xjabr/Documents/Works/rn-daniele/node_modules/react-native/Libraries/Sample/package.json
This error is caused by hasteImpl
returning the same name for different files.at setModule (/Users/xjabr/Documents/Works/rn-daniele/node_modules/metro/node_modules/jest-haste-map/build/index.js:569:17)at workerReply (/Users/xjabr/Documents/Works/rn-daniele/node_modules/metro/node_modules/jest-haste-map/build/index.js:641:9)at runMicrotasks ()at processTicksAndRejections (internal/process/task_queues.js:97:5)at async Promise.all (index 20387)(node:8622) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
This is the package.json
{"name": "justanidea","version": "0.0.1","private": true,"scripts": {"start": "node node_modules/react-native/local-cli/cli.js start","test": "jest" },"dependencies": {"EventEmitter": "^1.0.0","fbemitter": "^2.1.1","firebase": "^6.1.1","firebase-admin": "^8.2.0","firebase-functions": "^3.1.0","moment": "^2.24.0","react": "16.8.3","react-mixin": "^2.0.2","react-native": "0.59.9","react-native-custom-components": "^1.0.0","react-native-fbsdk": "^0.8.0","react-native-fetch-blob": "^0.10.8","react-native-file-viewer": "^1.0.15","react-native-fs": "^2.13.3","react-native-gesture-handler": "^1.3.0","react-native-gifted-spinner": "^0.1.0","react-native-html-to-pdf": "^0.7.0","react-native-image-crop-picker": "^0.24.1","react-native-image-resizer": "^1.0.1","react-native-orientation-loading-overlay": "^0.1.6","react-native-photo-browser": "^0.4.0","react-native-photo-grid": "0.0.2","react-native-safe-area-view": "^0.14.5","react-native-search-box": "0.0.19","react-native-timeago": "^0.4.0","react-navigation": "^3.11.0","react-timeago": "^4.4.0","react-timer-mixin": "^0.13.4","rn-fetch-blob": "^0.10.15","subscribable": "^0.4.0","wolfy87-eventemitter": "^5.2.6" },"devDependencies": {"@babel/core": "^7.4.5","@babel/runtime": "^7.4.5","babel-jest": "^24.8.0","jest": "^24.8.0","metro-react-native-babel-preset": "^0.54.1","react-test-renderer": "16.8.3" },"jest": {"preset": "react-native" }}