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>.Recommended threads
- Function issue
Hi,idk whats wrong with my function but i made some changes to the env var and made sure they saved then i redeployed it,but then after it redeeployed it asked ...
- Can't resume paused project
I have logged in in incognito, done the email verification and still get the invalid fingerprint error. What's the issue.
- I am currently seeking opportunities as ...
Hey! 👋 I'm a Shopify guy. Been building stores for 8+ years. Still haven't lost my mind. Barely. I make stores that don't suck fast, smooth, and actually built...