javascript – [runtime not ready]: Error: Non-js exception: Compiling JS failed: 1283:3:import declaration have to be at high stage of module, js engine: hermes

0
1
javascript – [runtime not ready]: Error: Non-js exception: Compiling JS failed: 1283:3:import declaration have to be at high stage of module, js engine: hermes


I upgraded my react native from 0.75.2 to 0.79.1 to be able to repair the difficulty with the most recent Xcode replace. I adopted precisely every thing within the improve helper. After a protracted of attempting to run the app, I lastly obtained to know that I hade so as to add AppDelegate.swift file to the compile sources (as within the image) enter image description here

Now, the issue I am getting appears to have one thing to do with javascript. my babel.config.js file is as follows:

module.exports = {
  presets: ['module:@react-native/babel-preset'],
  plugins: ['module:react-native-dotenv', 'react-native-reanimated/plugin'],
};

my bundle.json file is as follows:

{
  "title": "lutfen",
  "model": "0.0.1",
  "personal": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint .",
    "begin": "react-native begin",
    "take a look at": "jest",
    "postinstall": "patch-package"
  },
  "dependencies": {
    "@gorhom/bottom-sheet": "^4.6.4",
    "@os-team/i18next-react-native-language-detector": "^1.0.34",
    "@react-native-async-storage/async-storage": "^2.0.0",
    "@react-native-clipboard/clipboard": "^1.15.0",
    "@react-native-community/blur": "newest",
    "@react-navigation/bottom-tabs": "^6.6.1",
    "@react-navigation/native": "^6.1.18",
    "@react-navigation/native-stack": "^6.11.0",
    "@reduxjs/toolkit": "^2.2.8",
    "axios": "^1.7.7",
    "i18next": "^23.16.5",
    "react": "19.0.0",
    "react-i18next": "^15.1.1",
    "react-native": "0.79.1",
    "react-native-fast-image": "^8.6.3",
    "react-native-gesture-handler": "^2.20.0",
    "react-native-linear-gradient": "^2.8.3",
    "react-native-localize": "^3.4.1",
    "react-native-reanimated": "^3.15.4",
    "react-native-render-html": "^6.3.4",
    "react-native-safe-area-context": "^5.4.0",
    "react-native-screens": "^3.34.0",
    "react-native-share": "^11.0.4",
    "react-native-svg": "^15.11.2",
    "react-native-webview": "^13.12.3",
    "react-redux": "^9.1.2",
    "redux": "^5.0.1"
  },
  "devDependencies": {
    "@babel/core": "^7.25.2",
    "@babel/preset-env": "^7.25.3",
    "@babel/runtime": "^7.25.0",
    "@react-native-community/cli": "18.0.0",
    "@react-native-community/cli-platform-android": "18.0.0",
    "@react-native-community/cli-platform-ios": "18.0.0",
    "@react-native/babel-preset": "0.79.1",
    "@react-native/eslint-config": "0.79.1",
    "@react-native/metro-config": "0.79.1",
    "@react-native/typescript-config": "0.79.1",
    "@varieties/jest": "^29.5.13",
    "@varieties/react": "^19.0.0",
    "@varieties/react-test-renderer": "^19.0.0",
    "eslint": "^8.19.0",
    "jest": "^29.6.3",
    "patch-package": "^8.0.0",
    "postinstall-postinstall": "^2.1.0",
    "prettier": "2.8.8",
    "react-native-dotenv": "^3.4.11",
    "react-native-svg-transformer": "^1.5.0",
    "react-test-renderer": "19.0.0",
    "typescript": "5.0.4"
  },
  "engines": {
    "node": ">=18"
  }
}

is there any approach I can monitor the error? I attempted to take away every thing and clear all of the caches and builds however the issue persist. Additionally, I’ve no details about the error (additionally not within the console). all I get is that this: enter image description here

might you please give me any recommendation about the way to take care of this error?

LEAVE A REPLY

Please enter your comment!
Please enter your name here