我正试图将Expo应用程序从SDK 27更新到33。我已经毫无问题地升级到30,但是事实证明,达到31是很棘手的。更改package.json后尝试运行代码时,出现以下错误:
无法解析来自的“ ../Database/caatch.db” “ Util \ DatabaseConnector.js”
我已经将此代码作为正在进行的项目的一部分进行了继承,并且正尝试将其更新为我自己以及下一步将与之合作的SDK。 我尝试搜索,更改字符串参数(如下)。 caatch.db在那里。我只是不确定为什么更新后没有看到它。我还检查了Expo文档,这似乎是正确的语法。
来自app.json的一些摘要,因为这就是我要安装更新的内容:
componentDidMount
此行似乎是引起问题的行:
"devDependencies": {
"babel-preset-expo": "^5.0.0",
"jest-expo": "~31.0.0",
"react-test-renderer": "16.5.0",
"react-native-scripts": "1.14.0"
},
"main":
"./node_modules/react-native-scripts/build/bin/crna-entry.js",
"scripts": {
"start": "react-native-scripts start",
"eject": "react-native-scripts eject",
"android": "react-native-scripts android",
"ios": "react-native-scripts ios",
"test": "jest"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"@expo/vector-icons": "^9.0.0",
"@haskkor/react-native-pincode": "^1.5.4",
"expo": "^31.0.0",
"moment": "^2.22.2",
"native-base": "^2.12.1",
"prop-types": "^15.6.1",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz",
"react-native-accordion": "^1.0.1",
"react-native-calendars": "^1.19.3",
"react-native-chart-kit": "^1.1.5",
"react-native-collapsible": "^0.12.0",
"react-native-communications": "^2.2.1",
"react-native-dialog": "^5.4.0",
"react-native-elements": "^0.19.1",
"react-native-elevated-view": "0.0.6",
"react-native-image-view": "^2.1.1",
"react-native-image-zoom-viewer": "^2.2.13",
"react-native-input-scroll-view": "^1.7.1",
"react-native-keyboard-aware-scroll-view": "^0.6.0",
"react-native-keyboard-spacer": "^0.4.1",
"react-native-modal-datetime-picker": "^6.0.0",
"react-native-modal-selector": "0.0.28",
"react-native-multiple-select-list": "^1.0.4",
"react-native-open-maps": "^0.3.1",
"react-native-picker-select": "^4.4.0",
"react-native-pin-code": "^0.4.1",
"react-native-scalable-image": "^0.4.0",
"react-native-slider": "^0.11.0",
"react-native-snap-carousel": "^3.7.4",
"react-native-snap-slider": "^0.3.0",
"react-native-swipeable": "^0.6.0",
"react-native-vector-icons": "^4.6.0",
"react-navigation": "^2.2.0",
"react-redux": "^5.0.7",
"react-timer-mixin": "^0.13.4",
"redux": "^4.0.0",
"tcomb-form-native": "git+https://github.com/conbag/tcomb-form-native.git#app-version",
"victory-native": "^30.1.0"
预期结果:我应该能够在SDK 31.0.0上运行该应用
实际结果:升级到31.0.0后,我得到上面列出的错误