1 year ago
#384629
Bilal Yaqoob
Expo TypeError: undefined is not an object (evaluating '_app.default.apps')
I am working on an expo app and I published my app on the app store and play store.
The app works fine on the play store but crashed on the app store.
App works fine while developing means working locally.
I got some errors while making the build but the build was successful and after uploading the app. When I checked the app it crashed without showing any error. I thought that it is because of old packages then i removed the packages and installed the latest version of packages but after installing new versions of packages I got some other error and not even able to run the app and when i used the old packages again the app start running but with that the app crashed on app store. I added the errors below.
The expo build logs that was in Red color. The app was crashed on iPhone 11.
ult/ios/ExpoKitApp.xcworkspace -scheme ExpoKitApp
[stderr] --- xcodebuild: WARNING: Using the first of multiple matching destinations:
[stderr] { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
[stderr] { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
[stderr] { platform:iOS Simulator, id:1CB33FBC-3FAA-4F3E-BB0F-A9EDCAAD1259, OS:15.0, name:iPad (9th generation) }
[stderr] { platform:iOS Simulator, id:AFC5A58F-7FBC-4DF5-AE5A-0974346DF7B6, OS:15.0, name:iPad Air (4th generation) }
[stderr] { platform:iOS Simulator, id:95E4DD21-70F0-4B6F-AC94-EA4476055EEF, OS:15.0, name:iPad Pro (9.7-inch) }
[stderr] { platform:iOS Simulator, id:EEB18B5C-E97E-454D-A183-84ED100F8196, OS:15.0, name:iPad Pro (11-inch) (3rd generation) }
[stderr] { platform:iOS Simulator, id:2A156826-CB37-46EA-8ECC-8DAD52EF0F1F, OS:15.0, name:iPad Pro (12.9-inch) (5th generation) }
[stderr] { platform:iOS Simulator, id:CCA2D32E-96E5-44C0-8A63-13814504BDA0, OS:15.0, name:iPad mini (6th generation) }
[stderr] { platform:iOS Simulator, id:AE115BC2-463C-49D5-B498-8741EE92F069, OS:15.0, name:iPhone 8 }
[stderr] { platform:iOS Simulator, id:718EB7E9-0A7D-4F2D-8334-9FAEB4D2D7D6, OS:15.0, name:iPhone 8 Plus }
[stderr] { platform:iOS Simulator, id:0B5CA4B0-23A2-4D9B-ACB5-0697F287717C, OS:15.0, name:iPhone 11 }
[stderr] { platform:iOS Simulator, id:03B4BB90-B5D0-4877-9D66-4E5B63B5A3C5, OS:15.0, name:iPhone 11 Pro }
[stderr] { platform:iOS Simulator, id:95F5C092-940F-4853-850B-B1B36E8E0590, OS:15.0, name:iPhone 11 Pro Max }
[stderr] { platform:iOS Simulator, id:FEA2C8C1-E52B-4540-9BCD-3BBC2EDEBFF4, OS:15.0, name:iPhone 12 }
[stderr] { platform:iOS Simulator, id:AFEA8245-61C0-43CB-BAEA-97F1196BAF6E, OS:15.0, name:iPhone 12 Pro }
[stderr] { platform:iOS Simulator, id:CB92FB5B-DF81-4D07-A8F6-18224862D513, OS:15.0, name:iPhone 12 Pro Max }
[stderr] { platform:iOS Simulator, id:AE9F8D77-BE11-4FDB-AD3B-CA9CF749BF34, OS:15.0, name:iPhone 12 mini }
[stderr] { platform:iOS Simulator, id:ECE956C8-39E0-492B-9E37-0C28627D599D, OS:15.0, name:iPhone 13 }
[stderr] { platform:iOS Simulator, id:BC6F1D15-3ED9-40F2-BBDA-D082D5DFB738, OS:15.0, name:iPhone 13 Pro }
[stderr] { platform:iOS Simulator, id:B26270AC-4D5B-4F8B-AF53-15B9BE5F6A3B, OS:15.0, name:iPhone 13 Pro Max }
[stderr] { platform:iOS Simulator, id:AF3558D2-7ED7-4BD9-93BE-9F2C242BE18E, OS:15.0, name:iPhone 13 mini }
[stderr] { platform:iOS Simulator, id:0A569D77-37C2-405B-A551-23EFA0D267DB, OS:15.0, name:iPhone SE (2nd generation) }
[stderr] { platform:iOS Simulator, id:3F3F8FB5-2DED-483F-8134-855C1784EFC5, OS:15.0, name:iPod touch (7th generation) }
Error after updating packages and the app doesn't start on the development machine.
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
TypeError: undefined is not an object (evaluating '_app.default.apps')
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.1.106:19000/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:302917:3 in global code
updated packages
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"@react-native-community/masked-view": "^0.1.11",
"@react-native-firebase/app": "^14.7.0",
"@react-native-firebase/auth": "^14.7.0",
"@react-navigation/bottom-tabs": "^6.3.1",
"@react-navigation/native": "^6.0.10",
"@react-navigation/stack": "^6.2.1",
"expo": "^44.0.6",
"expo-constants": "~13.0.2",
"expo-contacts": "~10.1.0",
"expo-file-system": "~13.1.4",
"expo-firebase-recaptcha": "~2.1.0",
"expo-font": "~10.0.4",
"expo-image-picker": "~12.0.1",
"expo-notifications": "~0.14.0",
"expo-status-bar": "~1.2.0",
"firebase": "^9.6.10",
"google-libphonenumber": "^3.2.27",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-44.0.0.tar.gz",
"react-native-calendars": "^1.1280.0",
"react-native-dialog": "^9.2.1",
"react-native-elements": "^3.4.2",
"react-native-gesture-handler": "~2.1.0",
"react-native-gifted-chat": "^0.16.3",
"react-native-keyboard-spacer": "^0.4.1",
"react-native-loading-spinner-overlay": "^3.0.0",
"react-native-masked-text": "^1.13.0",
"react-native-reanimated": "~2.3.1",
"react-native-safe-area-context": "3.3.2",
"react-native-screens": "~3.10.1",
"react-native-web": "0.17.1",
"react-native-webview": "11.15.0",
"react-navigation-stack": "^2.10.4",
"shorthash": "^0.0.2"
},
"devDependencies": {
"@babel/core": "^7.9.0"
},
"private": true
}
old packages
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"@react-native-community/masked-view": "0.1.10",
"@react-native-firebase/app": "^12.1.0",
"@react-native-firebase/auth": "^12.1.0",
"@react-navigation/bottom-tabs": "^5.11.11",
"@react-navigation/native": "^5.9.4",
"@react-navigation/stack": "^5.14.5",
"expo": "~42.0.0",
"expo-constants": "~11.0.1",
"expo-file-system": "~11.1.3",
"expo-firebase-recaptcha": "^1.4.2",
"expo-font": "~9.2.1",
"expo-image-picker": "~10.2.2",
"expo-notifications": "~0.12.3",
"expo-status-bar": "~1.0.4",
"firebase": "8.2.3",
"google-libphonenumber": "^3.2.21",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz",
"react-native-calendars": "^1.1264.0",
"react-native-dialog": "^9.2.0",
"react-native-elements": "^3.4.2",
"react-native-gesture-handler": "~1.10.2",
"react-native-gifted-chat": "^0.16.3",
"react-native-keyboard-spacer": "^0.4.1",
"react-native-loading-spinner-overlay": "^2.0.0",
"react-native-masked-text": "^1.13.0",
"react-native-reanimated": "~2.2.0",
"react-native-safe-area-context": "3.2.0",
"react-native-screens": "~3.4.0",
"react-native-web": "~0.13.12",
"react-native-webview": "11.6.2",
"react-navigation": "^4.4.4",
"react-navigation-stack": "^2.10.4",
"shorthash": "^0.0.2"
},
"devDependencies": {
"@babel/core": "^7.9.0"
},
"private": true
}
ios
xcode
react-native
expo
yarn-v2
0 Answers
Your Answer