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

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

Open cavewebs opened 12 months ago

cavewebs commented 12 months ago

Version

1.1.1

Reproduction link

https://github.com/timchosen/soft-ui-pro.git

Operating System

MacBook Pro running MacOS Monterey V 12.6.6

Device

iPhone 13 PRO running Expo Go v2.29.6

Browser & Version

Google Chrome Version 117.0.5938.92 (Official Build) (x86_64)

Steps to reproduce

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:

What is actually happening?

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:


Solution

Additional comments

RonneiPeterson commented 9 months ago

Same error here

cavewebs commented 9 months ago

Same error here

Not sure how I fixed it, but I think I moved over to yarn

RonneiPeterson commented 9 months ago

tnks

mitchboulay commented 6 months ago

Solution of yarn over npm worked for me as well.

JOY-SAM commented 5 months ago

I have no idea about yarn, but I did

cd project_dir
yarn install
yarn expo start

I got error

node:internal/errors:478 ErrorCaptureStackTrace(err); ^

Error [ERR_LOADER_CHAIN_INCOMPLETE]: "file:///Users/joy/Downloads/HS/.pnp.loader.mjs 'resolve'" did not call the next hook in its chain and did not explicitly signal a short circuit. If this is intentional, include shortCircuit: true in the hook's return. at new NodeError (node:internal/errors:387:5) at ESMLoader.resolve (node:internal/modules/esm/loader:849:13) at async ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:7) at async Promise.all (index 0) at async ESMLoader.import (node:internal/modules/esm/loader:530:24) at async loadESM (node:internal/process/esm_loader:91:5) at async handleMainPromise (node:internal/modules/run_main:65:12) { code: 'ERR_LOADER_CHAIN_INCOMPLETE' }

And please, don't make things complicated, please fix the issue with npm. We buy template reduce stress. Making us fixing bugs stress out again.

JOY-SAM commented 5 months ago

Try, it works.

npm install --legacy-peer-deps

Don't npx expo-doctor later or update packages

elieserme commented 1 week ago

Same error here.This product does not receive any attention from Creative-Tim. Has creative-tim gone bankrupt? Terrible product and service.