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

Invariant Violation: Tried to register two views with the same name RNCMaskedView, at startup #31

Closed
4 tasks done
mattiabonzi opened this issue Feb 28, 2024 · 3 comments

Comments

@mattiabonzi
Copy link

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed (it has been filed, but closed without any answer due to respsecting the issue format)
  • I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

The app start as described in the documentation.

Current Behavior

The app does not start correctly and crash as soon the building process finish.

Failure Information (for bugs)

The app crash with the following two error, the template has not been modified, just downloaded and tried to start as per documentation.

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

  1. Download the template from Creative Tim website.
  2. Open a terminal and enter into the template forlder (root folder).
  3. Run npm install
  4. Run npm start
  5. Press "a" to open the app on the connected Android device (the device is connected correctly, and all permission has been granted)

Context

  • Device: Xiaomi Note
  • Operating System: Android 13 | Mac Os 14.3.1
  • Browser and Version: Does not apply, I'm running it on physical device

No code as been modified, no file has been moved, just downloaded and tried to run as per documentation.

Failure Logs

soft-ui-pro-react-native % npm start

> start
> ANDROID_HOME=/opt/homebrew/Caskroom/android-sdk/4333796 expo start

Starting project at /Users/mattiabonzi/Progetti/farmshop/soft-ui-pro-react-native
Starting Metro Bundler
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █ ▀▀▄ ▄██ █ ▄▄▄▄▄ █
█ █   █ ███ ▄▄ █▄ █ █   █ █
█ █▄▄▄█ █ ▄▄ █▄██▄█ █▄▄▄█ █
█▄▄▄▄▄▄▄█ █ ▀ █▄▀ █▄▄▄▄▄▄▄█
█▄▄ █▀ ▄█▄  ██▀ ▀▄▄ ▄▄██  █
██▀ █▀▀▄ █▀█▄██▄▄██▀▄█▄▄█▄█
█▄▀ ██▀▄█ ▄█▄ █ ▀█  ███▀ ▀█
█▄▄▄█▀█▄▄█▀▄▀ ▄    ▄█ ▄█▀▄█
█▄▄█▄▄▄▄▄ ▄▀█▄▀ █ ▄▄▄  ▀█ █
█ ▄▄▄▄▄ █▀▀█▄▄▄ █ █▄█ ██▀▄█
█ █   █ ██▄▄ ██ ▄▄▄▄   ▀ ██
█ █▄▄▄█ █ ▄ ▄▄▄▄ ▀▀█ ▄██▄▄█
█▄▄▄▄▄▄▄█▄▄█▄██▄▄▄▄█▄▄███▄█

› Metro waiting on exp://192.168.9.110:19000
› Scan the QR code above with Expo Go (Android) or the Camera app (iOS)

› Press a │ open Android
› Press i │ open iOS simulator
› Press w │ open web

› Press j │ open debugger
› Press r │ reload app
› Press m │ toggle menu

› Press ? │ show all commands

Logs for your project will appear below. Press Ctrl+C to exit.
› Opening on Android...
› Opening exp://192.168.9.110:19000 on 23021RAA2Y
› Press ? │ show all commands
Android Bundling complete 1804ms
 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
Copy link

@mattiabonzi 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-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


@JuanCorzo
Copy link

Hello friend, did you get a solution? I have the same problem @mattiabonzi

@mattiabonzi
Copy link
Author

@JuanCorzo, no I switched to another theme.
Follow this other thread, as this one is closed #32

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