Search code examples
react-nativeexpovue-native

Unable to resolve "../../App" from "node_modules/expo/AppEntry.js"


I am making a vue-native app with expo. when upgrading to expo version 33 I get the following error "Unable to resolve "../../App" from "node_modules/expo/AppEntry.js". The need to upgrade to version 33 is because I need the expo filesystem module.

I have already made a new project from scratch and the same error still occurs.

package.json

{
  "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": "^33.0.0",
    "global": "^4.4.0",
    "react": "16.8.3",
    "react-dom": "^16.8.6",
    "react-native": "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz",
    "react-native-cli": "^2.0.1",
    "react-native-web": "^0.11.4",
    "vue-native-core": "0.0.8",
    "vue-native-helper": "0.0.11"
  },
  "devDependencies": {
    "@babel/core": "^7.0.0-0",
    "babel-preset-expo": "^5.1.1",
    "vue-native-scripts": "0.0.16"
  },
  "private": true
}

Solution

  • I solve the problem as downgrading Expo Sdk 33 to 32.

    To downgrade expo sdk;

    1- open app.json, change sdkVersion to "32.0.0" 2- open package.json, change the following dependencies

      {
      "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
      "expo": "^32.0.0",
      "react": "16.5.0"
       }
    

    3- delete node_modules, install again via "npm install" command