-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
Sometimes the generated hawkular-console.js doesn't work, causing the following error in the browser console:
Uncaught Error: [$injector:nomod] Module 'hawkular-alerts' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. http://errors.angularjs.org/1.3.15/$injector/nomod?p0=hawkular-alertsREGEX_STRING_REGEXP @ angular.js?v=1435313459044:63(anonymous function) @ angular.js?v=1435313459044:1774ensure @ angular.js?v=1435313459044:1698module @ angular.js?v=1435313459044:1772Alert @ alertDirective.ts:23(anonymous function) @ alertDirective.ts:94 angular.js?v=1435313459044:11655 Error: [$injector:unpr] Unknown provider: HawkularAccountProvider <- HawkularAccount <- HawkularAccounts.PersonaController http://errors.angularjs.org/1.3.15/$injector/unpr?p0=HawkularAccountProvider%20%3C-%20HawkularAccount%20%3C-%20HawkularAccounts.PersonaController at REGEX_STRING_REGEXP (angular.js?v=1435313459044:63) at angular.js?v=1435313459044:4015 at Object.getService [as get] (angular.js?v=1435313459044:4162) at angular.js?v=1435313459044:4020 at getService (angular.js?v=1435313459044:4162) at Object.invoke (angular.js?v=1435313459044:4194) at $get.extend.instance (angular.js?v=1435313459044:8493) at angular.js?v=1435313459044:7739 at forEach (angular.js?v=1435313459044:331) at nodeLinkFn (angular.js?v=1435313459044:7738)
This is an intermittent issue and simply "touching" a file to trigger gulp watch to recompile it makes it work.
Attaching a good and bad JS file for the same contents. A quick diff of both shows that alerts are loaded in different order, causing the problem.