Search code examples
angularwarningssuppress-warnings

Suppress "Circular dependency detected" suppress warning in Angular 6


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.

I am currently working with SVG, and in my logic I prevent possible problems so I just want to suppress this warning. How can I do that?

I will fix this problem afterwards but for now I want to keep it because my code is more structured this way.


Solution

  • Here the right path into the angular.json file :

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