添加angular-leaf -指令后构建失败
Grunt build failing after adding angular-leaflet-directive
我刚刚将angular-leaf -directive添加到我的项目中,当我用Grunt构建它时,它现在失败了。该依赖是使用bower添加的。这个项目是使用约曼角生成器构建的。
我在app.js中加入了leaf -指令
angular
.module('statsApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute',
'leaflet-directive'
])
现在,我只把<leaflet></leaflet>
放在我的视图中,只是为了开始。
Error: [$injector:modulerr] Failed to instantiate module statsApp due to:
Error: [$injector:modulerr] Failed to instantiate module leaflet-directive due to:
Error: [$injector:nomod] Module 'leaflet-directive' 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.
这篇文章解决了我的问题。它不是特定于我要添加的模块,而是特定于Karma测试失败,因为它们不知道leaflet-directive模块。
AngularJS错误:Module ngAnimate is not available
相关文章:
- Travis CI构建持续失败
- 在 gruntjs 构建失败的情况下强制执行某些任务
- 执行Haxe代码时Ant构建失败
- 模块构建失败:引用错误:[BABEL] 未知选项:base.stage
- Webpack 模块构建失败意外令牌(rails react build)
- 我刚刚添加了 var React = require('react-native');我的整个构建失败了
- travis-ci 在 grunt-contrib-imagemin 任务上构建失败(无法准备好未定义的属性“内容”
- Ant构建连接JavaScript:构建失败
- 为什么当子模块构建失败时,NPM会成功
- 添加angular-leaf -指令后构建失败
- ExtJS应用程序构建失败:ReferenceError: d3未定义
- 如果JSHint在监视任务期间失败,如何使Grunt构建失败
- 当测试失败时,TravisCI不会使构建失败
- Dojo构建失败的一个模块:OPTIMIZER失败:内部错误:缺少名称后.操作符
- 模块构建失败:TypeError:插件"transform-runtime"没有导出插件实例
- 西兰花构建dist -构建失败
- 在Cordova配置中添加图标后,Tabris.JS构建失败
- Cordova Android构建失败(“未能找到构建工具修订24.0.1”)
- yeoman 构建失败 - rjs mainConfigFile location
- 由于URL/散列模块依赖,Travis-CI构建失败