目标入口点 "chart-directives" 中的错误缺少依赖项:- ./../

ERROR in The target entry-point "chart-directives" has missing dependencies: - ./../

我想将 'NativeScriptUIChartModule' 整合到我的包中。但是它无法正确地编译资源。它给出了警告和错误。

WARNING in Entry point 'chart-directives' contains deep imports into '/Users/<username>/Desktop/projects/<app_path>/MobileApp/node_modules/@nativescript/angular/element-registry'. This is probably not a problem, but may cause the compilation of entry points to be out of order.

ERROR in The target entry-point "chart-directives" has missing dependencies:
 - ./../ 

我不明白我能解决这个问题。请帮助。

我认为问题至少出在我身上,我已经使用 npm 安装了插件。

我的解决方案是删除从 package-lock.json 安装的包,以及 package.json 然后使用 'tns plugin add' 命令安装插件。

或者您应该将忽略深度导入匹配器添加到 ngcc.config.js 文件中,根据 ERROR in The target entry-point "@nativescript/angular" has missing dependencies on running a Nativescript Angular 9 project

希望我的解决方案对您有所帮助

干杯, 乔达特