简体   繁体   English

每个XHR角度请求均出错

[英]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. 每次我执行XHR请求时,都会出现此错误。

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 我正在使用角度1.4.8预先感谢

This issue can arise if the version number of angular-animate in your project is different to the version number of angular . 如果项目中angular-animate的版本号与angular的版本号不同,则会出现此问题。

Make sure your angular-animate is version 1.4.8 . 确保您的angular-animate1.4.8版。

It is good practice in my experience to make sure all of your major angular libraries are running the same version. 根据我的经验,最好确保所有主要的角度库都运行相同的版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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