Tuesday, May 26, 2015

Error: [$injector:unpr] Unknown provider: $templateRequestProvider <- $templateRequest <- $modal

Error: [$injector:unpr] Unknown provider: $templateRequestProvider <- $templateRequest <- $modal
http://errors.angularjs.org/1.2.28/$injector/unpr?p0=%24templateRequestProvider%20%3C-%20%24templateRequest%20%3C-%20%24modal
    at VALIDITY_STATE_PROPERTY (http://localhost:8080/bower_components/angular/angular.js:78:14)
    at http://localhost:8080/bower_components/angular/angular.js:3801:21
    at Object.getService [as get] (http://localhost:8080/bower_components/angular/angular.js:3929:41)
    at http://localhost:8080/bower_components/angular/angular.js:3806:47
    at getService (http://localhost:8080/bower_components/angular/angular.js:3929:41)
    at Object.invoke (http://localhost:8080/bower_components/angular/angular.js:3956:21)
    at http://localhost:8080/bower_components/angular/angular.js:3807:39
    at getService (http://localhost:8080/bower_components/angular/angular.js:3929:41)
    at invoke (http://localhost:8080/bower_components/angular/angular.js:3956:21)
    at Object.instantiate (http://localhost:8080/bower_components/angular/angular.js:3976:25) <div class="container ng-scope" ng-view="">(anonymous function) @ angular.js:10126$get @ angular.js:7398nodeLinkFn @ angular.js:6755compositeLinkFn @ angular.js:6146publicLinkFn @ angular.js:6042$get.boundTranscludeFn @ angular.js:6166controllersBoundTransclude @ angular.js:6773update @ angular-route.js:865$get.Scope.$broadcast @ angular.js:13093(anonymous function) @ angular-route.js:547deferred.promise.then.wrappedCallback @ angular.js:11682deferred.promise.then.wrappedCallback @ angular.js:11682(anonymous function) @ angular.js:11768$get.Scope.$eval @ angular.js:12811$get.Scope.$digest @ angular.js:12623$get.Scope.$apply @ angular.js:12915done @ angular.js:8450completeRequest @ angular.js:8664xhr.onreadystatechange @ angular.js:8603
VM708:71 TooltipManager.cs: Processing http://localhost:8080/#/foundation/termcontent
TooltipBootstrapper.js:1 tooltipBootstrapper.cs: tt_process got a response of false


I use angular 1.2.28 and ui.bootstrap 0.12.1

If I use Jetty run my App on Chrome ,Then console will display 'Unknown provider: $templateRequestProvider <- $templateRequest <- $modal',But If I run my App on Safari will not display error.


I fell both difference at is use NodeJS.

When I update NodeJS from 0.12.3 to 0.12.4 and restart my MAC , finally Chrome not display error.

No comments:

Post a Comment