ReactVision / expo-starter-kit

NativeVision starter kit - Expo with JavaScript
https://nativevision.xyz
MIT License
1 stars 4 forks source link

TypeError: Cannot read property 'setJSMaterials' of null, js engine: hermes #1

Open ThuggerHacks opened 7 months ago

ThuggerHacks commented 7 months ago

hello, I'm getting this error while running the expo-starter-kit, I woul appreciate any help.

TypeError: Cannot read property 'setJSMaterials' of null, js engine: hermes ERROR Invariant Violation: "main" has not been registered. This can happen if:

robertjcolley commented 7 months ago

Did you configure xRmode in your app.config.js? Android or iOS?

ThuggerHacks commented 7 months ago

I'm using android, I didn't configure anything, I cloned the repo and installed all the packages using npm i, then I started the app using npx expo start

Avtrkrb commented 7 months ago

@ThuggerHacks I faced this issue a few days ago while I checked out the latest version of viro with expo 47. I have not cleaned my package manager cache & installed the latest packages, which might have led to the problem. Deleted the node_nodules folder, cleaned package manager cache & upgraded to expo 50, did a clean install & it worked again.

ThuggerHacks commented 7 months ago

I tried it, but the problem persists

internettrashh commented 7 months ago

hi there , facing this same issue , cloned this repo then npm install & npm start android

ThuggerHacks commented 7 months ago

hi there , facing this same issue , cloned this repo then npm install & npm start android

Hey, did you try running on development build?

internettrashh commented 7 months ago

hi there , facing this same issue , cloned this repo then npm install & npm start android

Hey, did you try running on development build?

no , ran it on expo go does it run on development build only?

ThuggerHacks commented 7 months ago

hi there , facing this same issue , cloned this repo then npm install & npm start android

Hey, did you try running on development build?

no , ran it on expo go does it run on development build only?

I think so, the docs say it doesn't support expo go, I don't know if the new release has expo go support, and if you keep having the same problem, I recommend you cloning the starter-kit (ReactNative witg no expo).

bhavyavishnani commented 2 months ago

anyone have any solution to this please?