futurepress / epubjs-rn

EpubJS React Native Example
Other
270 stars 150 forks source link

Cant link required libraries #140

Open emreeebozkurt opened 5 years ago

emreeebozkurt commented 5 years ago

Hi, i install epubjs-rn, when i link required libraries but when i run-android get this error;

Loading dependency graph...jest-haste-map: Haste module naming collision: react-native
  The following files share their name; please adjust your hasteImpl:
    * <rootDir>\node_modules\react-native\package.json
    * <rootDir>\node_modules\epubjs-rn\node_modules\react-native\package.json

Failed to construct transformer:  { Error: Duplicated files or mocks. Please check the console for more info
    at setModule (D:\reactn\testEpub\node_modules\jest-haste-map\build\index.js:620:17)
    at workerReply (D:\reactn\testEpub\node_modules\jest-haste-map\build\index.js:691:9)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  mockPath1: 'node_modules\\react-native\\package.json',
  mockPath2:
   'node_modules\\epubjs-rn\\node_modules\\react-native\\package.json' }
(node:15228) UnhandledPromiseRejectionWarning: Error: Duplicated files or mocks. Please check the console for more info
    at setModule (D:\reactn\testEpub\node_modules\jest-haste-map\build\index.js:620:17)
    at workerReply (D:\reactn\testEpub\node_modules\jest-haste-map\build\index.js:691:9)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:15228) 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: 1)
(node:15228) [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.
theloststars commented 5 years ago

i have some problem with you sir , after install and link the library

geekyarjun commented 5 years ago

I was also facing the same error, but I have removed the react-native as a dependency from the package.json of epubjs-rn and also delete the react-native module from its node_modules directory.

PS: Don't delete react-native from your projects package.json, just delete from the /node_modules/epubjs-rn/node_modules

chiragbatra29 commented 5 years ago

Screenshot_1567754375

Going through the same problem with "react-native": "0.60.5"

abdullatif422 commented 5 years ago

Did anyone fix this., ?

medmo7 commented 4 years ago

Any fix? having the same problem after installing the library, just with the install not linked yet

waredjal commented 4 years ago

Got the same issue, still no fix @fchasen ? Thanks guys for the great work