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

Cannot read property 'Aspect' of null #149

Open
DokterPP opened this issue Dec 27, 2023 · 3 comments
Open

Cannot read property 'Aspect' of null #149

DokterPP opened this issue Dec 27, 2023 · 3 comments

Comments

@DokterPP
Copy link

ive added the module into my react-native expo app. im using typescript and ive use the code example in Usage exaple on repo page
when i open the app it says

 ERROR  TypeError: Cannot read property 'Aspect' 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

my react-native version is "react-native": "0.72.6"
Please advise.

@RobertSasak
Copy link
Owner

Likely you need to build your app and not just use Expo Go. Platform?

@DokterPP
Copy link
Author

DokterPP commented Jan 1, 2024

ive built the app but it just runs into the same error when trying to build. Eventhough the ide detects the module, it doesnt seem to read the exports of the module. Has this been raised before or is it my own issue? I have also tried declaring the module in the @types folder in the node modules. I will come back to this if i find smt

@DokterPP
Copy link
Author

DokterPP commented Jan 1, 2024

Found out app isnt supported on expo as it used some react native native modules stuff. beyond my understanding. If i ever come back to this after ejecting from expo i will update

@DokterPP DokterPP closed this as completed Jan 1, 2024
@DokterPP DokterPP reopened this Jan 1, 2024
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

2 participants