epubjs-rn icon indicating copy to clipboard operation
epubjs-rn copied to clipboard

Error when run on RN 0.62.2

Open DDushkin opened this issue 4 years ago • 7 comments

My package.json

{
  "name": "ReaderApp",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint ."
  },
  "dependencies": {
    "epubjs-rn": "^0.1.5",
    "react": "16.11.0",
    "react-native": "0.62.2"
  },
  "devDependencies": {
    "@babel/core": "^7.9.6",
    "@babel/runtime": "^7.9.6",
    "@react-native-community/eslint-config": "^1.1.0",
    "babel-jest": "^26.0.1",
    "eslint": "^7.0.0",
    "jest": "^26.0.1",
    "metro-react-native-babel-preset": "^0.59.0",
    "react-test-renderer": "16.11.0"
  },
  "jest": {
    "preset": "react-native"
  }
}

After implementing this fix https://github.com/futurepress/epubjs-rn/issues/156#issuecomment-584358529 and run yarn android I'm getting these errors:

  • TypeError: Cannot read property 'DocumentDir' of undefined
  • TypeError: hmrClient.send is not a function
  • Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
  • Invariant Violation: Module RCTEventEmitter is not a registered callable module (calling receiveTouches)
  • Unchecked runtime.lastError: The message port closed before a response was received.

DDushkin avatar May 11 '20 10:05 DDushkin

This is stuck on 0.59 for now, not sure when this will be updated so any help with that would definitely be appreciated.

fchasen avatar May 12 '20 21:05 fchasen

hi, i used @ottofeller/epubjs-rn, it worked for me with rn 0.62

ramazanarslan avatar May 17 '20 20:05 ramazanarslan

hi, i used @ottofeller/epubjs-rn, it worked for me with rn 0.62

@ramazanarslan can you please outline the steps you took?

connectus-technology avatar May 18 '20 12:05 connectus-technology

hi, i used @ottofeller/epubjs-rn, it worked for me with rn 0.62

@ramazanarslan can you please outline the steps you took?

@ramazanarslan your guidance will be very helpful for us about how you manage to use this package to load .epub files As I'm using this package, .opf files loading is fine but when I switched to code to load .epub file then this https://github.com/futurepress/epubjs-rn/issues/127#issuecomment-664597544 error occurred

Mubeen07 avatar Jul 28 '20 17:07 Mubeen07

Does anyone knows if this package is not maintained anymore?

muriloneo avatar Aug 03 '20 11:08 muriloneo

same here on rn 63

jamal-rahimzadegan avatar Aug 05 '20 19:08 jamal-rahimzadegan

same here on rn 63

Check this: https://github.com/futurepress/epubjs-rn/issues/156#issuecomment-668756320

muriloneo avatar Aug 05 '20 20:08 muriloneo