“TypeError:无法使用ng-animate读取未定义的属性'add'错误

问题描述 投票:2回答:1

在我从1.2.24更新到1.3.0-rc.2后,我收到了以下错误。当我从模块中删除ngAnimate时,它会消失。只有使用动画的东西是angular-ui-bootstrap。

TypeError: Cannot read property 'add' of undefined
    at M (http://localhost/webapp/js/angular-animate.min.js:8:113)
    at http://localhost/webapp/js/angular-animate.min.js:19:6
    at http://localhost/webapp/js/angular-animate.min.js:8:29
    at m.$digest (http://localhost/webapp/js/angular.min.js:116:279)
    at m.$apply (http://localhost/webapp/js/angular.min.js:118:386)
    at l (http://localhost/webapp/js/angular.min.js:77:80)
    at u (http://localhost/webapp/js/angular.min.js:81:389)
    at XMLHttpRequest.v.onreadystatechange (http://localhost/webapp/js/angular.min.js:82:477) angular.js:10627
    (anonymous function) angular.js:10627
    (anonymous function) angular.js:7824
    m.$digest angular.js:13166
    m.$apply angular.js:13380
    l angular.js:8849
    u angular.js:9064
    v.onreadystatechange angular.js:9003

在此先感谢任何帮助......

编辑:

逐块检查后,我发现手风琴会导致错误。但它仍然有效,动画也可以。但是有错误很烦人。

angularjs angular-ui angular-ui-bootstrap ng-animate
1个回答
0
投票

需要更多的信息,但解决方案可能是

[ngAnimate] = ...而不是* ngAnimate。

© www.soinside.com 2019 - 2024. All rights reserved.