小编Ash*_*aer的帖子

无法从“node_modules/expo/AppEntry.js”解析“../../App”

我正在用 expo 制作一个 vue 原生应用程序。升级到 expo 版本 33 时,出现以下错误“无法从“node_modules/expo/AppEntry.js”解析“../../App””。需要升级到版本 33 是​​因为我需要 expo 文件系统模块。

我已经从头开始创建了一个新项目,但仍然出现同样的错误。

包.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
}
Run Code Online (Sandbox Code Playgroud)

react-native expo vue-native

6
推荐指数
2
解决办法
2万
查看次数

标签 统计

expo ×1

react-native ×1

vue-native ×1