futurepress/epubjs-rn

Error when run on RN 0.62.2

Opened this issue · 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 #156 (comment) 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.

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

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

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

@ramazanarslan can you please outline the steps you took?

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 #127 (comment) error occurred

Does anyone knows if this package is not maintained anymore?

same here on rn 63

same here on rn 63

Check this: #156 (comment)