我是靠谱客的博主 优美睫毛,最近开发中收集的这篇文章主要介绍如何处理Angular应用的错误消息: No pipe found with name async,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

错误消息:

Failed to compile.

src/app/ngrxdemo/container/component/counter/counter.component.html:8:27 - error NG8004: No pipe found with name ‘async’.

8 当前数:{{ counter$ | async }}
~~~~~

src/app/ngrxdemo/container/component/counter/counter.component.ts:9:16
9 templateUrl: ‘./counter.component.html’,
~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component CounterComponent.

虽然CounterComponent作为child Component,其parent Component里已经申明了包含async pipe的Common Module,但是仍然需要在child Component里也import Common Module:

import之后问题解决:

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

最后

以上就是优美睫毛为你收集整理的如何处理Angular应用的错误消息: No pipe found with name async的全部内容,希望文章能够帮你解决如何处理Angular应用的错误消息: No pipe found with name async所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(36)

评论列表共有 0 条评论

立即
投稿
返回
顶部