Thanks for any help, the issue is now resolved. We falsely assumed that keycloak javascript adapter is at fault because it showed up in error trace. In reallity we falsely assumed that @NgInject annotation would handle all dependency-injection-related tasks, so we didn't specify function.$inject = ['things', 'to', 'inject'];
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