Good morning,
I'm trying to deploy a sample angularjs project on Heroku but I get this error:
Uncaught Error: [$injector:unpr] Unknown provider: aProvider <- a
This is my Gruntfile.js:
grunt.registerTask('heroku:production', [
'clean:dist','wiredep','useminPrepare','concurrent:dist','autoprefixer','concat','ngmin',
'copy:dist','cdnify', 'cssmin','uglify', 'filerev', 'usemin:dist']);
All my controllers, services and providers are rewritten using this syntax:
var dett = angular.module('DettRipetizioniCtrlModule', []);
dett.controller('DettRipetizioniCtrl', [ '$scope', '$routeParams', '$location', 'services', function ($scope, $routeParams, $location, services) {
//do stuff
}
and my app.js file is:
var app = angular.module('lemieripetizioni3App',['ngRoute','ngAnimate','Services','DettRipetizioniCtrlModule','Animations','RicercaRipetizioniCtrlModule']);
This is my git repo: https://github.com/gterribilio/lmr.git
Any ideas? Could be a minification problem on Heroku? Using the same grunttask on localhost works fine.
Thanks in advance.
Giuseppe