禁止“检测到循环依赖".在Angular 6中取消警告

编程入门 行业动态 更新时间:2024-10-28 08:24:27
本文介绍了禁止“检测到循环依赖".在Angular 6中取消警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我得到警告

检测到循环依赖!

Circular dependency detected!

在Angular 6中,我知道为什么会出现此问题,但这根本不是问题.

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

我目前正在使用SVG,按照我的逻辑,我避免了可能的问题,所以我只想取消此警告.我该怎么办?

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.

推荐答案

此处是angular.json文件的正确路径:

Here the right path into the angular.json file :

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

更多推荐

禁止“检测到循环依赖".在Angular 6中取消警告

本文发布于:2023-10-30 21:56:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1544118.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:检测到   quot   Angular

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!