creativetimofficial / ct-soft-ui-pro-react-native

Start your development with a Design System for React-Native inspired by Soft UI Design System.
https://www.creative-tim.com/product/soft-ui-pro-react-native
15 stars 3 forks source link

"Error: Tried to Register Two Views with the Same Name (RNCMaskedView) and 'main' Not Registered" #19

Closed cavewebs closed 1 year ago

cavewebs commented 1 year ago

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.

  1. step 1: Download and extract the app
  2. step 2: cd into the extracted app and run npm install
  3. step 3: run npm run start
  4. step 4: scan the generated QR code to load the app in Expo (iOS)
  5. 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.

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`.
github-actions[bot] commented 1 year ago

@cavewebs this issue was automatically closed because it did not follow our rules:


IMPORTANT: Please use the following link to create a new issue:

https://www.creative-tim.com/new-issue/soft-ui-pro-react-native

**If your issue was not created using the app above, it will be closed immediately.**

Love Creative Tim? Do you need Angular, React, Vuejs or HTML? You can visit:
👉  https://www.creative-tim.com/bundles
👉  https://www.creative-tim.com