1

我正在用 gulp-babel-minify 缩小代码,我得到一些像这样的错误

Uncaught Error: [$injector:unpr] Unknown provider: 
aProvider <- a <- $http <- $templateFactory <- $view <- $state

新更新

最后我在缩小后得到错误,这是来自 app.js 的代码:

    app.config(['$httpProvider', '$qProvider',function($httpProvider, $qProvider){
  $httpProvider.interceptors.push('AuthInterceptors');
  $qProvider.errorOnUnhandledRejections(false);
    //HANDLE LOST CONN 1 WITH NEW PAGE
     $httpProvider.interceptors.push(function($q) {
        return {
          responseError: function(rejection) {
                if(rejection.status <= 0) {
                    window.location = "../noresponse.html";
                    return rejection;
                }
                return $q.reject(rejection);
            }
        };
    });

}]);

那么那里的代码真的有错误吗?那怎么处理Uncaught Error: [$injector:unpr] Unknown provider: aProvider <- a <- $http <- $templateFactory <- $view <- $state??

4

0 回答 0