Suppress “Circular dependency detected” suppress warning in Angular 6

后端 未结 3 2030
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-11 15:11

I get the warning

Circular dependency detected!

in Angular 6 and I know why this problem appears, but it is not a problem at all

3条回答
  •  礼貌的吻别
    2021-01-11 15:57

    projects -> architect -> options - > "showCircularDependencies": false

    @Marcello is correct that is the corrrect path...however if running "ng serve" you need to make sure to stop (Ctrl+C) and restart it for your angular.json file to be loaded or you will still get the circular dependency warnings.

提交回复
热议问题