hipster-labs / generator-jhipster-bootswatch

A jhipster module to enable bootswatch theme switcher to generated application
Other
14 stars 7 forks source link

Unknown Provider: BootswatchInterceptorProvider #12

Open DavidMCook opened 6 years ago

DavidMCook commented 6 years ago

Tried adding this to an AngularJS 1.x app built by JHipster, and all looked to be fine from the sanity checks standpoint. When trying to run the application, the Maven build shows successful, but there is an error with the app itself:

Uncaught Error: [$injector:unpr] Unknown provider: BootswatchInterceptorProvider <- BootswatchInterceptor <- $http <- $templateFactory <- $view <- $state
http://errors.angularjs.org/1.5.8/$injector/unpr?p0=BootswatchInterceptorProvider%20%3C-%20BootswatchInterceptor%20%3C-%20%24http%20%3C-%20%24templateFactory%20%3C-%20%24view%20%3C-%20%24state
    at angular.js:68
    at angular.js:4511
    at Object.getService [as get] (angular.js:4664)
    at angular.js:4516
    at Object.getService [as get] (angular.js:4664)
    at angular.js:10889
    at forEach (angular.js:321)
    at $HttpProvider.$get (angular.js:10887)
    at Object.invoke (angular.js:4718)
    at angular.js:4517

My assumption is that this is a conflict with either the latest version of JHipster or with AngularJS 1.x. If so, can you please make sure to list supported/compatible versions?

deepu105 commented 6 years ago

I haven't updated this module in a while and given my current priorities I wouldn't have much time to look at this hence would appreciate if you could look into it and provide PR if required. You can see the last version it worked from the Jhipster version used as dependency on the package.json

On 26 Dec 2017 8:34 pm, "DavidMCook" notifications@github.com wrote:

Tried adding this to an AngularJS 1.x app built by JHipster, and all looked to be fine from the sanity checks standpoint. When trying to run the application, the Maven build shows successful, but there is an error with the app itself:

Uncaught Error: [$injector:unpr] Unknown provider: BootswatchInterceptorProvider <- BootswatchInterceptor <- $http <- $templateFactory <- $view <- $statehttp://errors.angularjs.org/1.5.8/$injector/unpr?p0=BootswatchInterceptorProvider%20%3C-%20BootswatchInterceptor%20%3C-%20%24http%20%3C-%20%24templateFactory%20%3C-%20%24view%20%3C-%20%24state at angular.js:68 at angular.js:4511 at Object.getService [as get] (angular.js:4664) at angular.js:4516 at Object.getService [as get] (angular.js:4664) at angular.js:10889 at forEach (angular.js:321) at $HttpProvider.$get (angular.js:10887) at Object.invoke (angular.js:4718) at angular.js:4517

My assumption is that this is a conflict with either the latest version of JHipster or with AngularJS 1.x. If so, can you please make sure to list supported/compatible versions?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hipster-labs/generator-jhipster-bootswatch/issues/12, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDlF9Hhk1Co2cN2udjpD1fRmGIXHqGYks5tEUpRgaJpZM4RM9vE .