Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'init' of null, js engine: hermes #279

Open
abdunozir opened this issue May 13, 2024 · 4 comments
Open

TypeError: Cannot read property 'init' of null, js engine: hermes #279

abdunozir opened this issue May 13, 2024 · 4 comments

Comments

@abdunozir
Copy link

TypeError: Cannot read property 'init' of null, js engine: hermes
ERROR 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., js engine: hermes.

package.json:

{
  "name": "travel",
  "version": "1.0.0",
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo run:android",
    "ios": "expo run:ios",
    "web": "expo start --web"
  },
  "resolutions": {
    "@expo/config-plugins": "~6.0.0",
    "@expo/prebuild-config": "~6.0.0",
    "expo-modules-autolinking": "~1.1.0"
  },
  "dependencies": {
    "@expo/vector-icons": "^14.0.0",
    "@react-native-async-storage/async-storage": "^1.23.1",
    "@react-native-community/hooks": "^3.0.0",
    "@react-navigation/bottom-tabs": "^6.5.20",
    "@react-navigation/material-bottom-tabs": "^6.2.28",
    "@react-navigation/native": "^6.1.17",
    "@react-navigation/native-stack": "^6.9.26",
    "@react-navigation/stack": "^6.3.29",
    "apisauce": "^3.0.1",
    "axios": "^1.6.8",
    "deprecated-react-native-prop-types": "^5.0.0",
    "expo": "^51.0.2",
    "expo-constants": "~16.0.1",
    "expo-image-picker": "~15.0.4",
    "expo-location": "~17.0.1",
    "expo-status-bar": "~1.12.1",
    "expo-system-ui": "^3.0.4",
    "formik": "^2.4.5",
    "lottie-react-native": "6.7.0",
    "q-react-native-yandexmapkit": "^0.1.4",
    "react": "18.2.0",
    "react-dom": "^18.2.0",
    "react-native": "0.74.1",
    "react-native-gesture-handler": "^2.16.2",
    "react-native-image-picker": "^7.1.2",
    "react-native-keyboard-aware-scroll-view": "^0.9.5",
    "react-native-maps": "^1.14.0",
    "react-native-maps-directions": "^1.9.0",
    "react-native-onboarding-swiper": "^1.2.0",
    "react-native-paper": "^5.12.3",
    "react-native-progress": "^5.0.1",
    "react-native-safe-area-context": "4.10.1",
    "react-native-screens": "3.31.1",
    "react-native-sweet-alert": "^3.5.0",
    "react-native-vector-icons": "^10.0.3",
    "react-native-video": "^5.2.1",
    "react-native-web": "^0.19.10",
    "react-native-webview": "^13.8.6",
    "react-native-yamap": "^4.1.18",
    "yup": "^1.4.0"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "metro-react-native-babel-preset": "^0.77.0"
  },
  "private": true
}

@x4AEKx
Copy link

x4AEKx commented May 26, 2024

same error

@jalolov08
Copy link

@muhammadabdumalikov
Copy link

hey
any solution guys?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants