在“ AppInitializationService”中添加“ MSAL”服务时出现循环依赖项错误

时间:2020-04-29 10:23:27

标签: angular

我正在使用MSAL服务,在AppInitializationService中的构造函数中添加msal服务时出现以下错误。


{
  "createdAt": null,
  "modifiedAt": null,
  "createdBy": null,
  "modifiedBy": null,
  "id": "641a55d1-1026-4093-b339-02174b09891a",
  "height": 1,
  "width": 1
}

在App.module.TS中,我添加了以下代码:


{
 "labelSize": {
    "createdAt": null,
    "modifiedAt": null,
    "createdBy": null,
    "modifiedBy": null,
    "id": "641a55d1-1026-4093-b339-02174b09891a",
    "height": 1,
    "width": 1
  }
}

在AppInitializationService中

"Cannot instantiate cyclic dependency! ApplicationRef ("[ERROR ->]"): in NgModule AppModule in ./AppModule@-1:-1"

你能告诉我如何解决吗?

0 个答案:

没有答案