简体   繁体   English

角动画破坏了我的样板程序

[英]angular-animate broke my Boilerplate App

im building an app with boilerplate on angularjs 1.4.9. 即时通讯在angularjs 1.4.9上使用样板构建应用程序。 Now i added angular-animate via 'bower install angular-animate' and since then, every 'grunt watch' ends in an error: 现在,我通过“ bower install angular-animate”添加了角动画,此后,每个“咕watch声手表”都以错误结尾:

Firefox 43.0.0 (Windows 10 0.0.0) AppCtrl isCurrentUrl should pass a dummy test FAILED
minErr/<@C:/path/to/app/src/main/webapp/app/vendor/angular/angular.js:68:12

My browser error stack looks like: 我的浏览器错误堆栈如下所示:

Uncaught Error: [$injector:modulerr] Failed to instantiate module ngBoilerplate due to:
Error: [$injector:modulerr] Failed to instantiate module ngBoilerplate.briefings_create due to:
Error: [$injector:modulerr] Failed to instantiate module ngAnimate due to:
Error: [$injector:nomod] Module 'ngAnimate' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
    http://errors.angularjs.org/1.4.9/$injector/nomod?p0=ngAnimate
    at http://localhost:8080/path/to/app/vendor/angular/angular.js:68:12
    at http://localhost:8080/path/to/app/vendor/angular/angular.js:2006:17
    at ensure (http://localhost:8080/path/to/app/vendor/angular/angular.js:1930:38)
    at module (http://localhost:8080/path/to/app/vendor/angular/angular.js:2004:14)
    at http://localhost:8080/path/to/app/vendor/angular/angular.js:4447:22
    at forEach (http://localhost:8080/path/to/app/vendor/angular/angular.js:341:20)
    at loadModules (http://localhost:8080/path/to/app/vendor/angular/angular.js:4431:5)
    at http://localhost:8080/path/to/app/vendor/angular/angular.js:4448:40
    at forEach (http://localhost:8080/path/to/app/vendor/angular/angular.js:341:20)
    at loadModules (http://localhost:8080/path/to/app/vendor/angular/angular.js:4431:5)
    http://errors.angularjs.org/1.4.9/$injector/modulerr?p0=ngAnimate&p1=Error%…80%2Fpath%2Fto%2F%2Fapp%2Fvendor%2Fangular%2Fangular.js%3A4431%3A5)
    at http://localhost:8080/path/to/app/vendor/angular/angular.js:68:12
    at http://localhost:8080/path/to/app/vendor/angular/angular.js:4470:15
    at forEach (http://localhost:8080/path/to/app/vendor/angular/angular.js:341:20)
    at loadModules (http://localhost:8080/path/to/app/vendor/angular/angular.js:4431:5)
    at http://localhost:8080/path/to/app/vendor/angular/angular.js:4448:40
    at forEach (http://localhost:8080/path/to/app/vendor/angular/angular.js:341:20)
    at loadModules (http://localhost:8080/path/to/app/vendor/angular/angular.js:4431:5)
    at http://localhost:8080/path/to/app/vendor/angular/angular.js:4448:40
    at forEach (http://localhost:8080/path/to/app/vendor/angular/angular.js:341:20)
    at loadModules (http://localhost:8080/path/to/app/vendor/angular/angular.js:4431:5)
    http://errors.angularjs.org/1.4.9/$injector/modulerr?p0=ngBoilerplate.brief…80%2Fpath%2Fto%2F%2Fapp%2Fvendor%2Fangular%2Fangular.js%3A4431%3A5)
    at http://localhost:8080/path/to/app/vendor/angular/angular.js:68:12
    at http://localhost:8080/path/to/app/vendor/angular/angular.js:4470:15
    at forEach (http://localhost:8080/path/to/app/vendor/angular/angular.js:341:20)
    at loadModules (http://localhost:8080/path/to/app/vendor/angular/angular.js:4431:5)
    at http://localhost:8080/path/to/app/vendor/angular/angular.js:4448:40
    at forEach (http://localhost:8080/path/to/app/vendor/angular/angular.js:341:20)
    at loadModules (http://localhost:8080/path/to/app/vendor/angular/angular.js:4431:5)
    at createInjector (http://localhost:8080/path/to/app/vendor/angular/angular.js:4356:11)
    at doBootstrap (http://localhost:8080/path/to/app/vendor/angular/angular.js:1677:20)
    at bootstrap (http://localhost:8080/path/to/app/vendor/angular/angular.js:1698:12)
    http://errors.angularjs.org/1.4.9/$injector/modulerr?p0=ngBoilerplate&p1=Er…0%2Fpath%2Fto%2Fapp%2Fvendor%2Fangular%2Fangular.js%3A1698%3A12)(anonymous function) @ angular.js:68(anonymous function) @ angular.js:4470forEach @ angular.js:341loadModules @ angular.js:4431createInjector @ angular.js:4356doBootstrap @ angular.js:1677bootstrap @ angular.js:1698angularInit @ angular.js:1592(anonymous function) @ angular.js:29652trigger @ angular.js:3069defaultHandlerWrapper @ angular.js:3358eventHandler @ angular.js:3346

Even if I uninstall angular-animate again, the error remains. 即使我再次卸载angular-animate,错误仍然存​​在。 I can't find any solutions to this issue on the net. 我在网上找不到针对此问题的任何解决方案。

Could this be a karma issue or bower related? 这可能是因果问题或与凉亭有关吗?

Thanks for any help! 谢谢你的帮助!

Tim 提姆

Solution: when installing angular-animate with 'bower install angular-animate' choose the right angular-version when bower asks you for it(for ng-boilerplate v0.3.1 it is angularjs v1.2.29). 解决方案:当使用“ bower install angular-animate”安装角度动画时,当Bower要求您提供时选择正确的角度版本(对于ng-boilerplate v0.3.1,它是angularjs v1.2.29)。

And the error vanishes... 错误消失了...

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

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