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

查看:132
本文介绍了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天全站免登陆