Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

TypeError: Cannot read property 'classes' of undefined #9643

Closed
costin-zaharia opened this issue Oct 16, 2014 · 2 comments
Closed

TypeError: Cannot read property 'classes' of undefined #9643

costin-zaharia opened this issue Oct 16, 2014 · 2 comments

Comments

@costin-zaharia
Copy link

ngAnimate is throwing the following error when switching the application ui state:
{code}
TypeError: Cannot read property 'classes' of undefined
at resolveElementClasses (/Scripts/lib/angular/angular-animate.js:549:22)
at .../Scripts/lib/angular/angular-animate.js:1188:27
at .../Scripts/lib/angular/angular-animate.js:514:22
at h.$get.h.$digest (.../Scripts/lib/angular/angular.min.js:121:393)
at h.$get.h.$apply (.../Scripts/lib/angular/angular.min.js:123:406)
at HTMLButtonElement. (.../Scripts/lib/angular/angular.min.js:224:239)
at HTMLButtonElement.n.event.dispatch (.../Scripts/lib/jquery/jquery-2.1.1.min.js:3:6404)
at HTMLButtonElement.n.event.add.r.handle (.../Scripts/lib/jquery/jquery-2.1.1.min.js:3:3179) angular.js:11358(anonymous function) angular.js:11358$get angular.js:8445$get.h.$digest angular.js:14017$get.h.$apply angular.js:14227(anonymous function) angular.js:22523n.event.dispatch jquery-2.1.1.min.js:3n.event.add.r.handle
{code}

We are using angularjs version 1.3.0 and ui-router v0.2.11.

@gkalpak
Copy link
Member

gkalpak commented Oct 16, 2014

Something like this #9636 would fix the error.

@petebacondarwin
Copy link
Contributor

Closing as a duplicate of #9636. @costin-zaharia - perhaps you could try that fix and report if this solves your problem?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants