Angular 9-目标入口点缺少依赖项 [英] Angular 9 - The target entry-point has missing dependencies
问题描述
我已将Angular库升级到Angular9.但是,当我尝试在另一个Angular 9项目中使用该库时,出现如下错误:
I have upgraded an Angular library to Angular 9. However when I attempt to use that library in another Angular 9 project I get an error like this:
目标入口点"mycomponents/entity-selector"缺少依赖项:
The target entry-point "mycomponents/entity-selector" has missing dependencies:
- mycomponents/shared-services
- mycomponents/spinner
- mycomponents/text-input
Package.json
Package.json
{
"$schema": "../../../node_modules/ng-packagr/package.schema.json",
"name": "entity-selector",
"version": "0.0.0",
"ngPackage": {
"lib": {
"entryFile": "public_api.ts"
},
"dest": "../../../dist/mycomponents/entity-selector"
}
}
这是次要端点,它使用其他组件也是次要端点.
This is a secondary endpoint which uses other components which are also secondary endpoints.
在图书馆项目中,我需要在ng-packgr或其他地方定义依赖项吗?实体选择器组件的模块为其他组件导入适当的模块.自Angular 9起出现了这个问题.
In the library project do I need to some define the dependencies in ng-packgr or somewhere else? The module for the entity-selector component imports the appropriate module for the other components. This issue cropped up since Angular 9.
先谢谢.
推荐答案
ERROR in The target entry-point "primeng" has missing dependencies: - chart.js
ERROR in The target entry-point "primeng" has missing dependencies: - quill
ERROR in The target entry-point "primeng" has missing dependencies: - @fullcalendar/core
npm install --save chart.js
npm install --save quill
npm install --save @fullcalendar/core
这篇关于Angular 9-目标入口点缺少依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!