Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 6 - TypeError: this.driver.matchesElement is not a function at TransitionAnimationEngine.processLeaveNode (browser.js:2985)

Tags:

angular6

Note: This is not this error. Have tried the resolution steps mentioned in that error as well.

I am getting the following error in my Angular 6 app

ERROR TypeError: this.driver.matchesElement is not a function
at TransitionAnimationEngine.processLeaveNode (browser.js:2985)
at TransitionAnimationEngine.flush (browser.js:3021)
at InjectableAnimationEngine.AnimationEngine.flush (browser.js:3858)
at eval (animations.js:365)
at ZoneDelegate.invoke (zone.js:388)
at Zone.run (zone.js:138)
at NgZone.runOutsideAngular (core.js:4708)
at AnimationRendererFactory.end (animations.js:363)
at DebugRendererFactory2.end (core.js:15153)
at ViewRef_.detectChanges (core.js:11623)
like image 378
kathikeyan A Avatar asked Dec 03 '22 11:12

kathikeyan A


2 Answers

Ensure you use the same version of angular/animations comparing with core.

like image 147
Sasikumar Avatar answered Dec 04 '22 23:12

Sasikumar


@angular/core and @angular/animations should be same version. Especially look for "^" symbol in package name in package.json.

It should be

"@angular/core": "6.0.5", "@angular/animations": "6.0.5",

and not like

"@angular/core": "6.0.5", "@angular/animations": "^6.0.5",

From https://stackoverflow.com/a/52348690/1881626

like image 30
Ahmed El-Araby Avatar answered Dec 05 '22 00:12

Ahmed El-Araby