Nativescript 目标入口点中的错误“;图表指令“;缺少依赖项:-.//

Nativescript 目标入口点中的错误“;图表指令“;缺少依赖项:-.//,nativescript,angular2-nativescript,nativescript-angular,nativescript-telerik-ui,nativescript-plugin,Nativescript,Angular2 Nativescript,Nativescript Angular,Nativescript Telerik Ui,Nativescript Plugin,我想在包中集成“NativeScriptUIChartModule”。但它无法正确地整合资源。它给出了警告和错误 WARNING in Entry point 'chart-directives' contains deep imports into '/Users/<username>/Desktop/projects/<app_path>/MobileApp/node_modules/@nativescript/angular/element-registry'. T

我想在包中集成“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:
 - ./../ 
入口点“图表指令”中的警告包含深入导入“/Users//Desktop/projects//MobileApp/node_modules/@nativescript/angular/element registry”的内容。这可能不是问题,但可能会导致入口点的编译出现问题。 目标入口点“图表指令”中的错误缺少依赖项: - ./../
我不明白我该怎么解决这个问题。请帮助。

我想问题至少在我,我已经使用npm安装了插件

我的解决方案是从package-lock.json和package.json中删除安装的包 然后使用“tns plugin add”命令安装插件

或者您应该在ngcc.config.js文件中添加ignore deep import matchers,根据

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

干杯,
Jawdat

我认为问题至少在于我,我已经使用npm安装了插件

我的解决方案是从package-lock.json和package.json中删除安装的包 然后使用“tns plugin add”命令安装插件

或者您应该在ngcc.config.js文件中添加ignore deep import matchers,根据

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

干杯,
Jawdat

我的nativescript angular 9共享代码也面临着类似的问题,而在运行它的web应用程序时,该应用程序直到昨天都运行良好。我遇到了这样一个错误:目标入口点“@nativescript/angular”中的错误缺少依赖项:-@nativescript/core/ui/layouts/layouts base我在运行其web应用程序时,nativescript angular 9共享代码也面临着类似的问题,该应用程序到昨天为止工作正常。我收到一个类似这样的错误:目标入口点“@nativescript/angular”中的错误缺少依赖项:-@nativescript/core/ui/layouts/layout base谢谢您的回复。但是我的package.json中已经有了这种依赖性,谢谢你的回复。但是在我的package.json中已经有了这种依赖性