JanStevens / angular-growl-2

growl-like notifications for angularJS projects
MIT License
285 stars 97 forks source link

Minification issue: Unknown provider #124

Open amergin opened 7 years ago

amergin commented 7 years ago

I'm seeing the following error when trying to minify the angular-growl.js: [$injector:unpr] Unknown provider: translateFilterProvider <- translateFilter <- growl <- NotifyService.

Best to my knowledge, this is somehow caused by the line https://github.com/JanStevens/angular-growl-2/blob/master/build/angular-growl.js#L201.

I'm using ng-annotate followed by uglify in a Grunt build setup. The code works okay if it's not being minified.

Has anyone stumbled on this? What could be the cause?