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

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

Open
ThuggerHacks opened this issue Feb 2, 2024 · 9 comments

Comments

@ThuggerHacks
Copy link

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:

  • Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
  • A module failed to load due to an error and AppRegistry.registerComponent wasn't called., js engine: hermes
@robertjcolley
Copy link
Contributor

robertjcolley commented Feb 2, 2024

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

@ThuggerHacks
Copy link
Author

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
Copy link

Avtrkrb commented Feb 3, 2024

@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
Copy link
Author

I tried it, but the problem persists

@internettrashh
Copy link

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

@ThuggerHacks
Copy link
Author

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

Hey, did you try running on development build?

@internettrashh
Copy link

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
Copy link
Author

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
Copy link

anyone have any solution to this please?

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

5 participants