On 22 Apr 2016, at 12:09 PM, Dejan B <dejan.benedik@gmail.com> wrote:Hi,is there a way to explicitly declare keycloak module as dependency?I've searched about similar issues [1], and it might be connected to the way interceptors are declared. To me, it seems like keycloak.js doesn't inject routerConfig the right (angular) way, but I might be wrong here.[1] http://stackoverflow.com/questions/28212837/keycloak-unknown-provider-error
On Fri, Apr 22, 2016 at 11:26 AM, Bartosz Andrzejczak <ba.andrzejczak@gmail.com> wrote:
Hi Dejan,Just define your dependencies explicitly like this:angular.module(‘myModule’).controller(‘test’, [‘$scope’, function ($scope) {...}]);or use ng-annotate [1] with your build system to do that for you.[1] https://github.com/olov/ng-annotateOn 22 Apr 2016, at 11:11 AM, Dejan B <dejan.benedik@gmail.com> wrote:Hello,we encountered a worrisome error while developing a SPA with Angular 1.5.3 and Keycloak 1.9.1 for authentication.If we run the application with strict dependency injection, bootstraping will fail with the following error:Error: [$injector:modulerr] Failed to instantiate module zis due to:[$injector:strictdi] routerConfig is not using explicit annotation and cannot be invoked in strict modebootstrap/doBootstrap@http://localhost:3000/bower_components/angular/angular.js:1746:20zisStartup/<@http://localhost:3000/app/index.run.js:110:9createPromise/p.setSuccess@http://localhost:3000/bower_components/keycloak/dist/keycloak.js:714:25Keycloak/kc.init/<@http://localhost:3000/bower_components/keycloak/dist/keycloak.js:96:17createPromise/p.setSuccess@http://localhost:3000/bower_components/keycloak/dist/keycloak.js:714:25processCallback/req.onreadystatechange@http://localhost:3000/bower_components/keycloak/dist/keycloak.js:490:29Without strict DI, the application runs fine, but the issue occurs every time we try to run minified code.How could we solve this problem?Cheers, Dejan_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user