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

[Bug] The app does not start, crash after build #32

Open
mattiabonzi opened this issue Feb 28, 2024 · 5 comments
Open

[Bug] The app does not start, crash after build #32

mattiabonzi opened this issue Feb 28, 2024 · 5 comments

Comments

@mattiabonzi
Copy link

Version

1.1.1

Reproduction link

https://github.com/creativetimofficial/soft-ui-react-native

Operating System

Android 13 | Mac Os 14.3.1

Device

Redmi Note 12 | Macbook Pro 2021 M1 Pro

Browser & Version

Does not apply, I'm running it on physical device

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)

What is expected?

The app starts and run as described in the documentation.

What is actually happening?

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


Solution

Additional comments

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

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
@sachin8606
Copy link

I am also facing this issue. @mattiabonzi did u get any solution?

@mattiabonzi
Copy link
Author

@sachin8606 no, I've used another template.
Apparently the after sales support from @timcreative isn't that great.

@softwareshinobi
Copy link

ughh... running into this too.

i'm trying to avoid digging my sleeves into this template to fix it.

i might have to.

there aren't that many online.

ugh.

@OrdenWills
Copy link

@softwareshinobi any progress? am stuck with it too for someone who's new to react native debugging a full app will probably take longer than writing from scratch

@erickwarui28
Copy link

deleting node_modules/@react-native-community/masked-view folder worked for me since it's a duplicate of node_modules/@react-native-masked-view/masked-view

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

5 participants