creativetimofficial / argon-react-native

Argon React Native
https://www.creative-tim.com/product/argon-react-native
MIT License
630 stars 961 forks source link

Unable to resolve module expo-modules-core / TypeError: undefined is not an object #38

Open AlanDellonSchwartzman opened 2 years ago

AlanDellonSchwartzman commented 2 years ago

Prerequisites

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

Expected Behavior

Please describe the behavior you are expecting

run expo start --android and the app starts correctly with no errors

Current Behavior

run expo start --android and show the error in finallized build

Unable to resolve module expo-modules-core from /Users/MYNAMES/Desktop/argon-pro-react-native-v1.6.0/node_modules/expo-splash-screen/build/SplashScreen.js: expo-modules-core could not be found within the project.

Failure Information (for bugs)

Unable to resolve module expo-modules-core from /Users/MYNAMES/Desktop/argon-pro-react-native-v1.6.0/node_modules/expo-splash-screen/build/SplashScreen.js: expo-modules-core could not be found within the project.

variant bug:

Unable to start your application. Please refer to https://expo.fyi/no-registered-application for more information. at node_modules/react-native/Libraries/ReactNative/AppRegistry.js:200:6 in runApplication

TypeError: undefined is not an object (evaluating '_expoModulesCore.NativeModulesProxy.ExpoSplashScreen') at node_modules/react-native/Libraries/Core/ExceptionsManager.js:104:6 in reportException at node_modules/react-native/Libraries/Core/ExceptionsManager.js:171:19 in handleException at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError at node_modules/expo-error-recovery/build/ErrorRecovery.fx.js:12:21 in ErrorUtils.setGlobalHandler$argument_0

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. clone repo
  2. run yarn
  3. run yarn start --android

Context

Failure Logs

Unable to start your application. Please refer to https://expo.fyi/no-registered-application for more information. at node_modules/react-native/Libraries/ReactNative/AppRegistry.js:200:6 in runApplication

TypeError: undefined is not an object (evaluating '_expoModulesCore.NativeModulesProxy.ExpoSplashScreen') at node_modules/react-native/Libraries/Core/ExceptionsManager.js:104:6 in reportException at node_modules/react-native/Libraries/Core/ExceptionsManager.js:171:19 in handleException at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError at node_modules/expo-error-recovery/build/ErrorRecovery.fx.js:12:21 in ErrorUtils.setGlobalHandler$argument_0

AlanDellonSchwartzman commented 2 years ago

the solution is in this PR #39