角动画 - 未知提供商:$$ asyncCallbackProvider< - $$的AsyncCallback< - $有生< - $编译 [英] Angular-animate - Unknown provider: $$asyncCallbackProvider <- $$asyncCallback <- $animate <- $compile

查看:247
本文介绍了角动画 - 未知提供商:$$ asyncCallbackProvider< - $$的AsyncCallback< - $有生< - $编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题。我想包括在我的AngularJS项目的角动画 - 我使用AngularJS V1.2.6。我已经加入角动画我的亭子文件。它下载并添加到源我的HTML文件,它指向正确的文件(它加载在浏览器中)。现在我需要添加为依赖关系,所以我的模块添加到我的应用程序...

I have a strange issue. I want to include angular-animate in my AngularJS project - I am using AngularJS v1.2.6. I have added angular-animate to my bower file. It has downloaded and added to my HTML file in the source and it is pointing to the correct file (it loads in the browser). Now I need to add this as a dependancy, so I add the module to my app...

angular.module('myApp', [
        'ngResource',
        'ngSanitize',
        'ngRoute',
        'ui.bootstrap',
        'LocalStorageModule',
        'cookiesModule',
        'ngAnimate'
    ])  

但是只要咕噜踢检测文件更改,并建立我收到以下错误:

However as soon as Grunt kicks in detecting a file change and builds I get the following error:

Unknown provider: $$asyncCallbackProvider <- $$asyncCallback <- $animate <- $compile

我已经检查拼写,我跟着上<一提的说明href=\"https://github.com/angular/bower-angular-animate\">https://github.com/angular/bower-angular-animate但我不明白为什么这不工作或者为什么我收到错误!我已经改变依赖阵列中的依赖关系的位置,但是这并没有什么。任何人都经历吗?我将继续研究这个,但如果有人已经克服或确定为什么发生这种情况,请说出来!在此先感谢

I've check the spelling, I've followed the instructions mentioned on https://github.com/angular/bower-angular-animate but I can't see why this isn't working or why I am getting the error! I've change the position of the dependency in the dependency array but this does nothing. Has anyone else experienced this? I'll continue researching this but if anyone has overcome or determined why this is happening please speak up! Thanks in advance

推荐答案

唷!我想我已经解决了这个问题...鲍尔似乎是问题和解决方案!

Phew! I think I have fixed this... Bower seems to be the issue and solution!

我改变FOM AngularJS 1.2.6至1.2.15由鲍尔文件,这似乎已经解决了我的问题:

I change fom AngularJS 1.2.6 to 1.2.15 in by bower file and this seems to have resolved my issue:

所以我改变了这一点:

  "angular": "1.2.6"

这个

  "angular": "1.2.15"

好了,只花了我两小时!

Well, That only cost me 2 hours!

这篇关于角动画 - 未知提供商:$$ asyncCallbackProvider&LT; - $$的AsyncCallback&LT; - $有生&LT; - $编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆