Hello,<div><br></div><div>we encountered a worrisome error while developing a SPA with Angular 1.5.3 and Keycloak 1.9.1 for authentication.</div><div>If we run the application with strict dependency injection, bootstraping will fail with the following error:</div><div><div><br></div><div>Error: [$injector:modulerr] Failed to instantiate module zis due to:</div><div>[$injector:strictdi] routerConfig is not using explicit annotation and cannot be invoked in strict mode</div><div><a href="http://errors.angularjs.org/1.5.4/$injector/strictdi?p0=routerConfig">http://errors.angularjs.org/1.5.4/$injector/strictdi?p0=routerConfig</a></div><div>minErr/&lt;@<a href="http://localhost:3000/bower_components/angular/angular.js:68:12">http://localhost:3000/bower_components/angular/angular.js:68:12</a></div><div>annotate@<a href="http://localhost:3000/bower_components/angular/angular.js:3903:1">http://localhost:3000/bower_components/angular/angular.js:3903:1</a></div><div>injectionArgs@<a href="http://localhost:3000/bower_components/angular/angular.js:4626:21">http://localhost:3000/bower_components/angular/angular.js:4626:21</a></div><div>invoke@<a href="http://localhost:3000/bower_components/angular/angular.js:4657:18">http://localhost:3000/bower_components/angular/angular.js:4657:18</a></div><div>runInvokeQueue@<a href="http://localhost:3000/bower_components/angular/angular.js:4558:11">http://localhost:3000/bower_components/angular/angular.js:4558:11</a></div><div>loadModules/&lt;@<a href="http://localhost:3000/bower_components/angular/angular.js:4567:11">http://localhost:3000/bower_components/angular/angular.js:4567:11</a></div><div>forEach@<a href="http://localhost:3000/bower_components/angular/angular.js:322:11">http://localhost:3000/bower_components/angular/angular.js:322:11</a></div><div>loadModules@<a href="http://localhost:3000/bower_components/angular/angular.js:4548:5">http://localhost:3000/bower_components/angular/angular.js:4548:5</a></div><div>createInjector@<a href="http://localhost:3000/bower_components/angular/angular.js:4470:19">http://localhost:3000/bower_components/angular/angular.js:4470:19</a></div><div>bootstrap/doBootstrap@<a href="http://localhost:3000/bower_components/angular/angular.js:1746:20">http://localhost:3000/bower_components/angular/angular.js:1746:20</a></div><div>bootstrap@<a href="http://localhost:3000/bower_components/angular/angular.js:1767:1">http://localhost:3000/bower_components/angular/angular.js:1767:1</a></div><div>zisStartup/&lt;@<a href="http://localhost:3000/app/index.run.js:110:9">http://localhost:3000/app/index.run.js:110:9</a></div><div>createPromise/p.setSuccess@<a href="http://localhost:3000/bower_components/keycloak/dist/keycloak.js:714:25">http://localhost:3000/bower_components/keycloak/dist/keycloak.js:714:25</a></div><div>Keycloak/kc.init/&lt;@<a href="http://localhost:3000/bower_components/keycloak/dist/keycloak.js:96:17">http://localhost:3000/bower_components/keycloak/dist/keycloak.js:96:17</a></div><div>createPromise/p.setSuccess@<a href="http://localhost:3000/bower_components/keycloak/dist/keycloak.js:714:25">http://localhost:3000/bower_components/keycloak/dist/keycloak.js:714:25</a></div><div>authSuccess@<a href="http://localhost:3000/bower_components/keycloak/dist/keycloak.js:518:36">http://localhost:3000/bower_components/keycloak/dist/keycloak.js:518:36</a></div><div>processCallback/req.onreadystatechange@<a href="http://localhost:3000/bower_components/keycloak/dist/keycloak.js:490:29">http://localhost:3000/bower_components/keycloak/dist/keycloak.js:490:29</a></div></div><div><br></div><div>Without strict DI, the application runs fine, but the issue occurs every time we try to run minified code.</div><div>How could we solve this problem?</div><div><br></div><div>Cheers, Dejan</div>