Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when run on RN 0.62.2 #169

Open
DDushkin opened this issue May 11, 2020 · 7 comments
Open

Error when run on RN 0.62.2 #169

DDushkin opened this issue May 11, 2020 · 7 comments

Comments

@DDushkin
Copy link

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.
@fchasen
Copy link
Contributor

fchasen commented May 12, 2020

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

@ramazanarslan
Copy link

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

@connectus-technology
Copy link

connectus-technology commented May 18, 2020

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

@ramazanarslan can you please outline the steps you took?

@Mubeen07
Copy link

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

@muriloneo
Copy link

Does anyone knows if this package is not maintained anymore?

@jamal-rahimzadegan
Copy link

same here on rn 63

@muriloneo
Copy link

same here on rn 63

Check this: #156 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants