我已将Angular库升级到Angular9。但是,当我尝试在另一个Angular 9项目中使用该库时,出现如下错误:
目标入口点“mycomponents / entity-selector”缺少依赖项:
- mycomponents/shared-services
- mycomponents/spinner
- mycomponents/text-input
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"
}
}
这是次要端点,它使用也是次要端点的其他组件。
在库项目中,我是否需要在ng-packgr或其他地方定义依赖项?实体选择器组件的模块为其他组件导入适当的模块。自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