简体   繁体   中英

Error on every XHR angular request

I have an issue that seems that is not affecting the behavior of the page but I don't know what is going on. Every time I do a XHR request I get this error.

TypeError: b.done is not a function
at angular-animate.js:2643
at r.$digest (angular.js:15946)
at r.$apply (angular.js:16160)
at g (angular.js:10589)
at T (angular.js:10787)
at XMLHttpRequest.w.onload (angular.js:10728)

I'm using angular 1.4.8 Thanks in advance

This issue can arise if the version number of angular-animate in your project is different to the version number of angular .

Make sure your angular-animate is version 1.4.8 .

It is good practice in my experience to make sure all of your major angular libraries are running the same version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM