Error Upgrading to Expo 46, "main" has not been registered

Hey!

Need your help! I have just upgrade from 43 to 46, and when I build, Expo Doc pop up error.

  1. SDK Version: 46
  2. Platforms(Android/iOS): android and ios
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

Please check and solve the problem.

Here’s my package.json:
{
“name”: “xxxxxx”,
“main”: “node_modules/expo/AppEntry.js”,
“private”: true,
“scripts”: {
“start”: “expo start”,
“android”: “expo start --android”,
“ios”: “expo start --ios”,
“eject”: “expo eject”
},
“dependencies”: {
@amplitude/react-native”: “^2.13.0”,
@expo-google-fonts/inter”: “^0.1.0”,
@expo-google-fonts/judson”: “^0.1.0”,
@expo-google-fonts/montserrat”: “^0.1.0”,
@expo-google-fonts/noto-sans”: “^0.1.0”,
@expo-google-fonts/open-sans”: “^0.1.0”,
@react-native-async-storage/async-storage”: “~1.17.3”,
@react-native-community/datetimepicker”: “6.2.0”,
@react-native-community/masked-view”: “0.1.10”,
@react-native-community/netinfo”: “9.3.0”,
@react-native-community/slider”: “4.2.3”,
@react-navigation/bottom-tabs”: “^6.0.9”,
@react-navigation/drawer”: “^6.1.8”,
@react-navigation/material-top-tabs”: “^6.0.6”,
@react-navigation/native”: “^6.0.6”,
@react-navigation/stack”: “^6.0.11”,
“buffer”: “^6.0.3”,
“deprecated-react-native-prop-types”: “^2.3.0”,
“dotenv”: “^16.0.1”,
“expo”: “^46.0.0”,
“expo-analytics”: “^1.0.16”,
“expo-application”: “~4.2.2”,
“expo-av”: “~12.0.4”,
“expo-barcode-scanner”: “~11.4.0”,
“expo-camera”: “~12.3.0”,
“expo-clipboard”: “~3.1.0”,
“expo-constants”: “~13.2.3”,
“expo-crypto”: “~11.0.0”,
“expo-dev-client”: “~1.2.1”,
“expo-document-picker”: “~10.3.0”,
“expo-file-system”: “~14.1.0”,
“expo-font”: “~10.2.0”,
“expo-image-picker”: “~13.3.1”,
“expo-linear-gradient”: “~11.4.0”,
“expo-linking”: “~3.2.2”,
“expo-location”: “~14.3.0”,
“expo-media-library”: “~14.2.0”,
“expo-modules-core”: “~0.11.3”,
“expo-network”: “~4.3.0”,
“expo-notifications”: “~0.16.1”,
“expo-screen-capture”: “~4.3.0”,
“expo-screen-orientation”: “~4.3.0”,
“expo-secure-store”: “~11.3.0”,
“expo-status-bar”: “~1.4.0”,
“expo-store-review”: “~5.3.0”,
“expo-tracking-transparency”: “~2.3.1”,
“expo-updates”: “~0.14.4”,
“expo-web-browser”: “~11.0.0”,
“lottie-react-native”: “5.1.3”,
“moment”: “^2.27.0”,
“numeral”: “^2.0.6”,
“react”: “18.0.0”,
“react-native”: “0.69.4”,
“react-native-base64”: “0.0.2”,
“react-native-calendars”: “^1.1275.0”,
“react-native-chart-kit”: “^6.3.0”,
“react-native-cn-richtext-editor”: “^1.0.40”,
“react-native-collapsible”: “^1.5.3”,
“react-native-copilot”: “^2.5.1”,
“react-native-crypto-js”: “^1.0.0”,
“react-native-date-picker”: “^4.1.3”,
“react-native-elements”: “^3.4.2”,
“react-native-fetch-polyfill”: “^1.1.3”,
“react-native-gesture-handler”: “~2.5.0”,
“react-native-hyperlink”: “0.0.19”,
“react-native-image-slider-box”: “^1.0.12”,
“react-native-image-viewing”: “^0.2.0”,
“react-native-keyboard-aware-scroll-view”: “^0.9.5”,
“react-native-maps”: “0.31.1”,
“react-native-modal”: “^11.5.6”,
“react-native-multiple-select”: “^0.5.3”,
“react-native-otp-textinput”: “0.0.5”,
“react-native-pager-view”: “5.4.24”,
“react-native-pose”: “^0.9.0”,
“react-native-progress”: “^4.1.2”,
“react-native-qrcode-svg”: “^5.2.0”,
“react-native-ratings”: “^7.3.0”,
“react-native-reanimated”: “~2.9.1”,
“react-native-render-html”: “^4.2.2”,
“react-native-safe-area-context”: “4.3.1”,
“react-native-safe-area-view”: “^1.1.1”,
“react-native-scalable-image”: “^1.1.0”,
“react-native-screens”: “~3.15.0”,
“react-native-scroll-into-view”: “^1.0.3”,
“react-native-skeleton-content”: “^1.0.22”,
“react-native-svg”: “12.3.0”,
“react-native-swipe-list-view”: “^3.2.3”,
“react-native-tab-view”: “^3.1.1”,
“react-native-vector-icons”: “^9.0.0”,
“react-native-webview”: “11.23.0”,
“react-navigation”: “^3.11.1”,
“react-navigation-drawer”: “^2.5.0”,
“react-navigation-stack”: “^2.8.2”,
“react-redux”: “^5.1.1”,
“redux”: “^4.0.1”,
“redux-persist”: “^5.10.0”,
“rn-swipe-button”: “^1.2.8”,
“url-parse”: “^1.4.7”
},
“devDependencies”: {
@babel/core”: “^7.18.6”,
@expo/vector-icons”: “^13.0.0”,
“babel-eslint”: “^10.1.0”,
“eslint”: “^5.9.0”,
“eslint-plugin-react”: “^7.20.4”,
“react-native-dotenv”: “^3.3.1”
}
}


Having the same issue as well

Hey @imanuelvic,

First, I’d like you to confirm, did you go through the step-by-step conversion from 43 to 46 SDK version? If not, in this documentation you will find blog post for each SDK version where the steps to upgrade are defined. Pleae confirm that you have followed all those steps.

Usually, when this error occurs, it’s a red herring which means it’s a distraction from the real error. See Expo docs on this: "Application has not been registered" error - Expo Documentation

Reading from your packahe.json, it seems you have multiple versions of React Navigation library:

Maybe stick to one version for navigation to resolve it.

If both of the above methods described do not resolve your issue, please read more about this issue in "Application has not been registered" error - Expo Documentation and try out the other step to register the root component.

1 Like

Hey @kevinhobert,

happy to look into if you can share more information or provide a minimal reproducible example.

Hi @amanhimself thanks for replying,

I already read the blog for each SDK version and try to followed all the steps to upgrade.

Both of the methods you describe still not resolve my issue. Still the same error.

I already follow the expo documentation for the step to register the root component.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.