Back

React native error using SDK

  • 0
  • React Native
Faye
7 May, 2024, 17:24

Heyo.

The moment I use anything within the react native Appwrite SDK, I get an error:

TypeScript
Android Bundled 17057ms (D:\git\headpat\headpat-app\index.js)
 ERROR  TypeError: Cannot read property 'prototype' of undefined, js engine: hermes
    at ContextNavigator (http://192.168.178.168:8081/index.bundle//&platform=android&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:194459:24)
    at ExpoRoot (http://192.168.178.168:8081/index.bundle//&platform=android&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:194431:28)
    at App
    at withDevTools(App) (http://192.168.178.168:8081/index.bundle//&platform=android&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:174903:27)
    at RCTView
    at CssInterop.View (http://192.168.178.168:8081/index.bundle//&platform=android&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:15128:45)
    at RCTView
    at CssInterop.View (http://192.168.178.168:8081/index.bundle//&platform=android&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:15128:45)
    at AppContainer (http://192.168.178.168:8081/index.bundle//&platform=android&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:75658:36)
    at main(RootComponent) (http://192.168.178.168:8081/index.bundle//&platform=android&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:122417:28)

I don't really know where to start looking, as it's on any page. This is the github repo: https://github.com/Headpat-Community/headpat-app

I hope anyone can find the issue to this one! πŸ™‚

TL;DR
Developers are encountering a "Cannot read property 'prototype' of undefined" error when using the React Native Appwrite SDK in their project. The error message points towards an issue with the js engine, specifically Hermes. The problem seems to occur on any page within the app. The error message pertains to the ContextNavigator component. The repository involved can be found at <https://github.com/Headpat-Community/headpat-app>.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more