Iam running tns android build on windows 10 but keeping getting following errors.
tns构建androidPreparing项目...(节点:13148)DeprecationWarning: Tapable.plugin已弃用。在
.hooks
上使用新的API ... 执行webpack失败,退出代码为1。
我尝试过更新webpack和所有依赖关系,并用谷歌搜索是否有解决方案。我已经结束了,已经过时的警告只是警告tapable:plugin不会在下一个版本中使用。
我的Package.json
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"repository": "<fill-your-repository-here>",
"nativescript": {
"id": "com.africaloop.IVETEvents",
"tns-android": {
"version": "6.0.2"
},
"tns-ios": {
"version": "6.0.2"
}
},
"dependencies": {
"@angular/common": "^8.2.3",
"@angular/compiler": "^8.2.0",
"@angular/core": "^8.2.3",
"@angular/forms": "^8.2.3",
"@angular/platform-browser": "^8.2.3",
"@angular/platform-browser-dynamic": "^8.2.3",
"@angular/router": "^8.2.3",
"eslint": "^5.10.0",
"nativescript-angular": "^8.2.0",
"nativescript-barcodescanner": "^2.4.1",
"nativescript-insomnia": "^1.2.2",
"nativescript-theme-core": "~1.0.2",
"npm-install-all": "^1.1.21",
"tns-core-modules": "^6.0.0",
"typescript": "^3.5.3",
"zone.js": "^0.9.1"
},
"devDependencies": {
"babel-traverse": "^6.26.0",
"babel-types": "^6.26.0",
"babylon": "6.4.5",
"copy-webpack-plugin": "~4.0.1",
"css-loader": "^3.2.0",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"html-webpack-plugin": "^3.2.0",
"lazy": "1.0.11",
"mini-css-extract-plugin": "^0.8.0",
"nativescript-dev-webpack": "^1.1.0",
"nativescript-worker-loader": "~0.8.1",
"raw-loader": "~0.5.1",
"resolve-url-loader": "~2.1.0",
"terser-webpack-plugin": "^1.4.1",
"tns-platform-declarations": "6.0.1",
"ts-loader": "^6.0.4",
"webpack": "^4.39.3",
"webpack-bundle-analyzer": "^3.4.1",
"webpack-sources": "~1.0.1",
"@angular/compiler-cli": "8.2.0",
"@ngtools/webpack": "8.2.0"
}
}