Error after Minification of angular js. Error: [$injector:unpr] Unknown provider: eProvider <- e <- makeErrorsDirective

后端 未结 4 1435
一整个雨季
一整个雨季 2021-01-05 00:48

I used Gulp to minify my entire js files. Once minified I got an error like the following:

[$injector:unpr] Unknown provider: eProvider <- e <- makeE         


        
4条回答
  •  轮回少年
    2021-01-05 01:02

    I had an issue using angular-ui-router-title. After changing

    $titleProvider.documentTitle(function($rootScope) {
        return $rootScope.$title + ' my title';
    });
    

    to

    $titleProvider.documentTitle(['$rootScope', function($rootScope) {
        return $rootScope.$title + ' my title';
    }]);
    

    the error doesn't appear anymore.

提交回复
热议问题