alexbrillant / react-native-deck-swiper

tinder like react-native deck swiper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

package.json collision

chelseatroy opened this issue · comments

Hi!

I am currently updating an open source React Native app from 0.57.8 to 0.59.8. I have tried updating react-native-deck-swiper and reinstalling everything via rm -rf node_modues && npm install, but I am now stuck on the following:

  Duplicate module name: Sample
  Paths: /Users/chelseatroy/workspace/mobile/node_modules/react-native-deck-swiper/node_modules/react-native/Libraries/Sample/package.json collides with /Users/chelseatroy/workspace/mobile/node_modules/react-native/Libraries/Sample/package.json

This error is caused by `hasteImpl` returning the same name for different files.
    at setModule (/Users/chelseatroy/workspace/mobile/node_modules/jest-haste-map/build/index.js:569:17)
    at workerReply (/Users/chelseatroy/workspace/mobile/node_modules/jest-haste-map/build/index.js:641:9)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:15592) 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(). (rejection id: 2)
(node:15592) [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:15592) UnhandledPromiseRejectionWarning: Error: jest-haste-map: Haste module naming collision:
  Duplicate module name: Sample
  Paths: /Users/chelseatroy/workspace/mobile/node_modules/react-native-deck-swiper/node_modules/react-native/Libraries/Sample/package.json collides with /Users/chelseatroy/workspace/mobile/node_modules/react-native/Libraries/Sample/package.json

Do you happen to know why this is happening, or what I should do to fix it?

Thank you!!