Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
Please describe the behavior you are expecting
To successfully load the demo app using expo
Current Behavior
What is the current behavior? After runing npm run start, I get a QR code to scan, I scan successfully, loads the app and splash screen but fails with the errors
ERROR Invariant Violation: Tried to register two views with the same name RNCMaskedView, 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
Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
ERROR Invariant Violation: Tried to register two views with the same name RNCMaskedView, 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
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
- step 1: Download and extract the app
- step 2: cd into the extracted app and run
npm install
- step 3: run
npm run start
- step 4: scan the generated QR code to load the app in Expo (iOS)
- step 5: app should load and fail at the splash screen with the error
ERROR Invariant Violation: Tried to register two views with the same name RNCMaskedView, 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
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
- Device: iPhone 13 PRO running Expo Go v2.29.6
- Operating System: MacBook Pro running MacOS Monterey V 12.6.6
- Browser and Version: Google Chrome Version 117.0.5938.92 (Official Build) (x86_64)
Failure Logs
Please include any relevant log snippets or files here.
iOS Bundling complete 1640ms
WARN Constants.platform.ios.model has been deprecated in favor of expo-device's Device.modelName property. This API will be removed in SDK 45.
ERROR Invariant Violation: Tried to register two views with the same name RNCMaskedView, 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
Using node to generate images. This is much slower than using native packages.
› Optionally you can stop the process and try again after successfully running `npm install -g sharp-cli`.