ct-material-kit-pro-react-native icon indicating copy to clipboard operation
ct-material-kit-pro-react-native copied to clipboard

Invariant Violation: "main" has not been registered. This can happen if:

Open techmodule opened this issue 3 years ago • 0 comments

I have account in https://www.creative-tim.com/club-member And i use Material Kit PRO React Native To day i have problems 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. at node_modules/react-native/Libraries/Core/ExceptionsManager.js:104:6 in reportException at node_modules/react-native/Libraries/Core/ExceptionsManager.js:172:19 in handleException at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError at node_modules/@react-native/polyfills/error-guard.js:49:36 in ErrorUtils.reportFatalError ReferenceError: Can't find variable: StyleSheet at node_modules/react-native/Libraries/Core/ExceptionsManager.js:104:6 in reportException at node_modules/react-native/Libraries/Core/ExceptionsManager.js:172:19 in handleException at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError at node_modules/@react-native/polyfills/error-guard.js:49:36 in ErrorUtils.reportFatalError at node_modules/metro-runtime/src/polyfills/require.js:204:6 in guardedLoadModule at http://192.168.11.248:19000/node_modules/expo/AppEntry.bundle?platform=ios&dev=true&hot=false&strict=false&minify=false:263642:3 in global code

I tried to init new expo project, then copy code, new install all component, but the problems not disapear.

techmodule avatar Mar 22 '22 03:03 techmodule