Току-що добавих angular-leaflet-directive към моя проект и когато започнах да го изграждам с Grunt, сега се проваля. Зависимостта беше добавена с помощта на bower. Този проект е изграден с помощта на ъгловия генератор Yeoman.
Тук включвам директивата за листовка в моя app.js
angular
.module('statsApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute',
'leaflet-directive'
])
И тогава засега просто имам <leaflet></leaflet>
според мен, само за да започна нещата.
Когато изграждането на Grunt се провали, получавам това съобщение за грешка
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.