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:
The target entry-point "mycomponents/entity-selector" has missing dependencies:
- 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"
}
}
This is a secondary endpoint which uses other components which are also secondary endpoints.
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.
Thank in advance.
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