迁移后的本机脚本错误:错误:目标入口点"chart-directives"缺少依赖项



在我迁移项目后,出现错误apear

webpack正在监视文件。。。编译@angular/core:module为esm2015编译@angular/animations:module as esm2015正在编译@angular/animations/browser:模块as esm2015编译@angular/common:模块as esm2015编译@angular/平台浏览器:模块as esm2015编译@angular/router:模块as esm2015编译@angular/common/http:模块为esm2015编译@angular/平台浏览器/动画:module as esm2015编译@angular/forms:module as ess2015将@nativescript/angular:模块编译为esm2015C: \Users\nova\Projects\petrobagolite_app\node_modules@angular\编译器cli\ngcc\src\entry_point_finder\targeted_entry_point_finder.js:40throw new Error("目标入口点"+invalidTarget.entryPoint.name+"缺少依赖项:+^

错误:目标入口点";图表指令";缺少相关性:

  • 本机描述角度/元素注册表

  • ./../

  • tns核心模块/数据/可观测阵列

  • tns核心模块/ui/core/view

  • tns核心模块/数据/可观察

  • tns核心模块/彩色

    在TargetedEntryPointFinder.findEntryPoints(C:\Users\nova\Projects\petrobagolite_app\node_modules@angular\编译器cli\ngcc\src\entry_point_finder\targeted_entry_point_finder.js:40:23)位于C:\Users\nova\Projects\petrobagolite_app\node_modules@angular\编译器cli\ngcc\src\execution\analyze_entry_points.js:29:41在SingleProcessExecutitorSync.SingleProcessExecutiorBase.doExecute(C:\Users\nova\Projects\petrobagolite_app\node_modules@angular\编译器cli\ngcc\src\execution\single_process_executor.js:28:29)位于C:\Users\nova\Projects\petrobagolite_app\node_modules@angular\编译器cli\ngcc\src\execution\single_process_executor.js:57:59位于SyncLocker.lock(C:\Users\nova\Projects\petrobagolite_app\node_modules@angular\编译器cli\ngcc\src\locking\sync_locker.js:34:24)在SingleProcessExecutiorSync.execute(C:\Users\nova\Projects\petrobagolite_app\node_modules@angular\编译器cli\ngcc\src\execution\single_process_executor.js:57:27)在Object.mainNgcc(C:\Users\nova\Projects\petrobagolite_app\node_modules@angular\编译器cli\ngcc\src\main.js:74:25)在Object.prrocess(C:\Users\nova\Projects\petrobagolite_app\node_modules@angular\编译器cli\ngcc\index.js:29:23)位于NgccProcessor.prrocessModule(C:\Users\nova\Projects\petrobagolite_app\node_modules@ngtools\webpack\src\ngcc_processor.js:175:16)位于C:\Users\nova\Projects\petrobagolite_app\node_modules@ngtools\webpack\src\ivy\host.js:146:18位于C:\Users\nova\Projects\petrobagolite_app\node_modules@ngtools\webpack\src\ivy\host.js:76:24在Array.map()位于Object.host.resolveModuleNames(C:\Users\nova\Projects\petrobagolite_app\node_modules@ngtools\webpack\src\ivy\host.js:74:32)在actualResolveModuleNamesWorker(C:\Users\nova\Projects\petrobagolite_app\node_modules\typescript\lib\typescript.js:109497:133)在resolveModuleNamesWorker(C:\Users\nova\Projects\petrobagolite_app\node_modules\typescript\lib\typescript.js:10976:26)在resolveModuleNamesReusingOldState(C:\Users\nova\Projects\petrobagolite_app\node_modules\typescript\lib\typescript.js:109857:24)执行webpack失败,退出代码为1。

我的包json是:

{
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"dependencies": {
"@angular/animations": "^12.2.5",
"@angular/common": "^12.2.5",
"@angular/compiler": "^12.2.5",
"@angular/core": "^12.2.5",
"@angular/forms": "^12.2.5",
"@angular/platform-browser": "^12.2.5",
"@angular/platform-browser-dynamic": "^12.2.5",
"@angular/router": "^12.2.5",
"@nativescript/imagepicker": "^1.0.5",
"@types/node": "7.0.7",
"@types/openpgp": "^4.4.7",
"base-64": "^0.1.0",
"from-exponential": "^1.0.0",
"moment": "^2.24.0",
"nativescript-barcodescanner": "^3.4.2",
"nativescript-checkbox": "^3.0.3",
"nativescript-exit": "^1.0.1",
"nativescript-feedback": "^1.3.12",
"nativescript-fingerprint-auth": "^7.0.2",
"nativescript-input-mask": "^1.0.5",
"nativescript-masked-text-field": "^4.0.3",
"nativescript-permissions": "^1.3.11",
"nativescript-theme-core": "~1.0.6",
"nativescript-qr-generator": "^2.0.0",
"nativescript-ui-autocomplete": "^6.0.0",
"nativescript-ui-chart": "^7.1.0",
"nativescript-webview-interface": "^1.4.4",
"nativescript-zxing": "^1.5.9",
"openpgp": "github:mohammadrafigh/nativescript-openpgpjs#openpgp2",
"reflect-metadata": "~0.1.12",
"rxjs": "~7.3.0",
"zone.js": "~0.11.4",
"@nativescript/core": "~8.1.1",
"@nativescript/angular": "^12.2.0"
},
"devDependencies": {
"@angular/compiler-cli": "^12.2.5",
"@nativescript/schematics": "^0.7.3",
"@ngtools/webpack": "^12.2.5",
"@types/node": "^11.15.20",
"typescript": "~4.3.5",
"@nativescript/webpack": "~5.0.0",
"@nativescript/android": "~8.1.1"
},
"gitHead": "1964ea9e8ca1a0518e0d6370781eedcf6c23db42",
"readme": "NativeScript Application",
"main": "./src/main.ts"
}

我不知道该怎么办,非常感谢任何能帮助我的人

看起来至少有一个NativeScript插件依赖项与NativeScript 7/8不兼容,因为它正在寻找tns-core-modules等较旧的v6导入。尝试:

"nativescript-ui-chart": "^9.0.0",

如果遇到更多类似的错误,请确保将所有本机描述插件依赖项更新为最新版本。

最新更新