Angular NoopAnimationsModule 类型错误匹配元素不是函数 [英] Angular NoopAnimationsModule Type Error matches Element is not a function

查看:28
本文介绍了Angular NoopAnimationsModule 类型错误匹配元素不是函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在为我的 Angular 6 应用程序导入 NoopAnimationsModule 后出现此错误

I'm getting this error after importing NoopAnimationsModule for my Angular 6 app

ERROR TypeError: this.driver.matchesElement is not a function
    at TransitionAnimationEngine.push../node_modules/@angular/animations/fesm5/browser.js.TransitionAnimationEngine.processLeaveNode (browser.js:2976)

推荐答案

这发生在我几个小时前,可能是由一些过时的模块引起的.

This happened to me a few hours ago, and was probably caused by some outdated modules.

运行 npm update --save 修复它.

这篇关于Angular NoopAnimationsModule 类型错误匹配元素不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆