在更新到 nativescript 7 时陷入困境
Stuck in limbo in updating to nativescript 7
我感觉我已经完成了所有应该做的更新步骤,但是我在 ios 中的 运行 仍然无法正常工作。
我正在查看所有说明,但似乎我认为会自动迁移的内容并没有迁移。谁能从我的 package.json 中看出我哪里出错了?
{
"nativescript": {
"id": "org.nativescript.nsplantapp",
"tns-android": {
"version": "6.5.3"
},
"tns-ios": {
"version": "6.5.2"
}
},
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"scripts": {},
"dependencies": {
"@angular/animations": "~8.2.0",
"@angular/common": "~8.2.0",
"@angular/compiler": "~8.2.0",
"@angular/core": "~8.2.0",
"@angular/forms": "~8.2.0",
"@angular/platform-browser": "~8.2.0",
"@angular/platform-browser-dynamic": "~8.2.0",
"@angular/router": "~8.2.0",
"@nstudio/nativescript-pulltorefresh": "^3.0.1",
"algoliasearch": "^4.1.0",
"nativescript-algolia": "^1.2.3",
"nativescript-angular": "^10.0.0",
"nativescript-imagepicker": "^7.1.0",
"nativescript-iqkeyboardmanager": "^1.5.1",
"nativescript-plugin-firebase": "^10.6.3",
"nativescript-theme-core": "^2.0.24",
"nativescript-ui-autocomplete": "^7.0.2",
"nativescript-ui-sidedrawer": "^9.0.3",
"reflect-metadata": "~0.1.12",
"rxjs": "^6.4.0",
"tns-core-modules": "^6.5.24",
"zone.js": "~0.9.1"
},
"devDependencies": {
"@angular/compiler-cli": "~8.2.0",
"@ngtools/webpack": "8.2.0",
"codelyzer": "~4.5.0",
"nativescript-dev-webpack": "^1.5.1",
"node-sass": "^4.7.1",
"tns-android": "6.5.3",
"tns-ios": "6.5.4",
"tslint": "~5.19.0",
"typescript": "~3.5.3"
}
}
您的 package.json 仍然适用于 NS 6+,此处列出的软件包不是 NS7 所需的软件包。
例如在 NS7 中,包中不再有 tns 命名空间,除了 CLI 中的兼容性。
看看这里,How to upgrade Nativescript
为了修改你的package.json.
我感觉我已经完成了所有应该做的更新步骤,但是我在 ios 中的 运行 仍然无法正常工作。
我正在查看所有说明,但似乎我认为会自动迁移的内容并没有迁移。谁能从我的 package.json 中看出我哪里出错了?
{
"nativescript": {
"id": "org.nativescript.nsplantapp",
"tns-android": {
"version": "6.5.3"
},
"tns-ios": {
"version": "6.5.2"
}
},
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"scripts": {},
"dependencies": {
"@angular/animations": "~8.2.0",
"@angular/common": "~8.2.0",
"@angular/compiler": "~8.2.0",
"@angular/core": "~8.2.0",
"@angular/forms": "~8.2.0",
"@angular/platform-browser": "~8.2.0",
"@angular/platform-browser-dynamic": "~8.2.0",
"@angular/router": "~8.2.0",
"@nstudio/nativescript-pulltorefresh": "^3.0.1",
"algoliasearch": "^4.1.0",
"nativescript-algolia": "^1.2.3",
"nativescript-angular": "^10.0.0",
"nativescript-imagepicker": "^7.1.0",
"nativescript-iqkeyboardmanager": "^1.5.1",
"nativescript-plugin-firebase": "^10.6.3",
"nativescript-theme-core": "^2.0.24",
"nativescript-ui-autocomplete": "^7.0.2",
"nativescript-ui-sidedrawer": "^9.0.3",
"reflect-metadata": "~0.1.12",
"rxjs": "^6.4.0",
"tns-core-modules": "^6.5.24",
"zone.js": "~0.9.1"
},
"devDependencies": {
"@angular/compiler-cli": "~8.2.0",
"@ngtools/webpack": "8.2.0",
"codelyzer": "~4.5.0",
"nativescript-dev-webpack": "^1.5.1",
"node-sass": "^4.7.1",
"tns-android": "6.5.3",
"tns-ios": "6.5.4",
"tslint": "~5.19.0",
"typescript": "~3.5.3"
}
}
您的 package.json 仍然适用于 NS 6+,此处列出的软件包不是 NS7 所需的软件包。 例如在 NS7 中,包中不再有 tns 命名空间,除了 CLI 中的兼容性。
看看这里,How to upgrade Nativescript
为了修改你的package.json.