Please provide the following:
- SDK Version: “~38.0.8”
- Platforms(Android/iOS/web/all): Android/iOS
I have upgraded from Expo SDK 35 to Expo SDK 38 and have been dealing with issues getting the app to start for about one week now.
I had just finished my entire app development with everything working perfectly on SDK 35 until it was time to upload it to the app store. Now I am forced to update the SDK for build purposes and now errors are delaying my entire release process.
I am getting hit with a multitude of issues with debugger / netinfo / etc. but I will start with the current issues below. Thanks for the help in advance.
For iOS the error shows as:
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.
For Android the error shows as:
TypeError: undefined in not an object (evaluating ‘firstFunction.apply’)
react-apollo.cjs.js:1073:58
My package.json below (I left out icon details etc.)
{
“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”: {
“@expo/react-apollo”: “^2.0.1-exp.0”,
“@react-native-community/cli-debugger-ui”: “4.7.0”,
“@react-native-community/netinfo”: “5.9.2”,
“aws-amplify”: “^3.0.19”,
“aws-amplify-react-native”: “^4.2.1”,
“aws-appsync”: “^3.0.4”,
“aws-appsync-react”: “^3.0.4”,
“aws-sdk”: “git://github.com/chrisradek/aws-sdk-js.git#fix-babel7”,
“babel-preset-expo”: “^8.2.3”,
“country-code-lookup”: “0.0.17”,
“country-list”: “^2.2.0”,
“countrycodes”: “0.0.5”,
“expo”: “~38.0.8”,
“expo-av”: “~8.2.1”,
“expo-cli”: “^3.21.13”,
“expo-contacts”: “~8.2.1”,
“expo-image-picker”: “~8.3.0”,
“expo-intent-launcher”: “~8.2.1”,
“expo-location”: “~8.2.1”,
“expo-permissions”: “~9.0.1”,
“expo-sms”: “~8.2.1”,
“expo-status-bar”: “^1.0.2”,
“expo-web-browser”: “~8.3.1”,
“graphql”: “^14.7.0”,
“graphql-tag”: “^2.9.2”,
“immutability-helper”: “^3.0.0”,
“lodash”: “^4.17.10”,
“react”: “~16.11.0”,
“react-apollo”: “^2.1.4”,
“react-dom”: “~16.11.0”,
“react-native”: “https://github.com/expo/react-native/archive/sdk-38.0.1.tar.gz”,
“react-native-aws3”: “0.0.8”,
“react-native-date-picker”: “^2.7.0”,
“react-native-datepicker”: “^1.7.2”,
“react-native-fit-image”: “^1.5.5”,
“react-native-google-places-autocomplete”: “^1.3.9”,
“react-native-image-pan-zoom”: “^2.1.11”,
“react-native-input-scroll-view”: “^1.7.1”,
“react-native-inviewport”: “^1.1.0”,
“react-native-keyboard-aware-scroll-view”: “^0.5.0”,
“react-native-keyboard-spacer”: “^0.4.1”,
“react-native-material-dropdown”: “^0.11.1”,
“react-native-modal”: “^11.3.1”,
“react-native-modal-datetime-picker”: “^7.5.0”,
“react-native-modal-dropdown”: “^0.7.0”,
“react-native-phone-input”: “^0.2.4”,
“react-native-photo-view-ex”: “^1.0.4”,
“react-native-picker-select”: “^7.0.0”,
“react-native-search-box”: “0.0.19”,
“react-native-searchbar”: “^1.15.0”,
“react-native-timeago”: “^0.4.0”,
“react-native-view-more-text”: “^2.1.0”,
“react-native-web”: “~0.11.7”,
“react-navigation”: “1.5.11”,
“react-navigation-addons”: “0.0.0”,
“react-number-format”: “^4.0.8”,
“react-phone-number-input”: “^3.0.17”,
“react-redux”: “^5.0.6”,
“react-router-dom”: “^4.2.2”,
“recompose”: “^0.30.0”,
“redux”: “^3.7.2”,
“redux-thunk”: “^2.2.0”,
“shuffle-array”: “^1.0.1”,
“stripe-client”: “^1.1.5”,
“uuid”: “^3.2.1”
},
“devDependencies”: {
“@babel/core”: “^7.8.6”,
“babel-preset-expo”: “~8.1.0”
},
“private”: true
}