我在angularjs 1.4.9上使用样板构建应用程序。现在我通过' bower安装角度动画添加角度动画'从那以后,每一个咕噜咕噜的手表'以错误结束:
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
我的浏览器错误堆栈如下所示:
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
即使我再次卸载角度动画,错误仍然存在。我无法在网上找到解决此问题的任何方法。
这可能是业力问题还是与凉亭有关?
感谢您的帮助!
添
答案 0 :(得分:0)
解决方案:当使用'bower install angular-animate'安装角度动画时,请选择正确的角度版本,当凉亭要求你时(对于ng-boilerplate v0.3.1,它是angularjs v1.2.29)。
错误消失了......