我正在制作一个带有 expo 的 vue-native 应用程序。升级到 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
}