react-native-openalpr icon indicating copy to clipboard operation
react-native-openalpr copied to clipboard

Cannot read property 'Aspect' of null

Open DokterPP opened this issue 1 year ago • 3 comments

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.

DokterPP avatar Dec 27 '23 11:12 DokterPP

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

RobertSasak avatar Dec 27 '23 12:12 RobertSasak

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 avatar Jan 01 '24 17:01 DokterPP

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 avatar Jan 01 '24 19:01 DokterPP