Angular 9 - 目标入口点缺少依赖项 [英] Angular 9 - The target entry-point has missing dependencies

查看:22
本文介绍了Angular 9 - 目标入口点缺少依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将一个 Angular 库升级到 Angular 9.但是,当我尝试在另一个 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆