'How do I know which module failed to load in AngularJS?

I never before used Angular older than 2.0. AngularJS keeps throwing me an error that something was not loaded in the browser and the app doesn't render, but I cannot get the name of what was not loaded, what was loaded or at least the place where my code threw an exception. I could load this app when I check out to the previous commit, start an app and then checkout (without stopping the server) to the branch. Moreover, I only duplicated some other components (whole page) and renamed them. Everything looks correct for me.

Uncaught Error: [$injector:modulerr] Failed to instantiate module {{name}} due to:
Error: [$injector:nomod] Module '{{name}}' 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.5.3/$injector/nomod?p0=imperator
    at http://localhost:3001/bower_components/angular/angular.js:70:12
    at http://localhost:3001/bower_components/angular/angular.js:2037:17
    at ensure (http://localhost:3001/bower_components/angular/angular.js:1960:38)
    at module (http://localhost:3001/bower_components/angular/angular.js:2034:14)
    at http://localhost:3001/bower_components/angular/angular.js:4528:22
    at forEach (http://localhost:3001/bower_components/angular/angular.js:323:20)
    at loadModules (http://localhost:3001/bower_components/angular/angular.js:4511:5)
    at createInjector (http://localhost:3001/bower_components/angular/angular.js:4433:19)
    at doBootstrap (http://localhost:3001/bower_components/angular/angular.js:1712:20)
    at bootstrap (http://localhost:3001/bower_components/angular/angular.js:1733:12)
http://errors.angularjs.org/1.5.3/$injector/modulerr?p0=imperator&p1=Error%3A%20%5B%24injector%3Anomod%5D%20Module%20'imperator'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.5.3%2F%24injector%2Fnomod%3Fp0%3Dimperator%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3001%2Fbower_components%2Fangular%2Fangular.js%3A70%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3001%2Fbower_components%2Fangular%2Fangular.js%3A2037%3A17%0A%20%20%20%20at%20ensure%20(http%3A%2F%2Flocalhost%3A3001%2Fbower_components%2Fangular%2Fangular.js%3A1960%3A38)%0A%20%20%20%20at%20module%20(http%3A%2F%2Flocalhost%3A3001%2Fbower_components%2Fangular%2Fangular.js%3A2034%3A14)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A3001%2Fbower_components%2Fangular%2Fangular.js%3A4528%3A22%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A3001%2Fbower_components%2Fangular%2Fangular.js%3A323%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A3001%2Fbower_components%2Fangular%2Fangular.js%3A4511%3A5)%0A%20%20%20%20at%20createInjector%20(http%3A%2F%2Flocalhost%3A3001%2Fbower_components%2Fangular%2Fangular.js%3A4433%3A19)%0A%20%20%20%20at%20doBootstrap%20(http%3A%2F%2Flocalhost%3A3001%2Fbower_components%2Fangular%2Fangular.js%3A1712%3A20)%0A%20%20%20%20at%20bootstrap%20(http%3A%2F%2Flocalhost%3A3001%2Fbower_components%2Fangular%2Fangular.js%3A1733%3A12)
    at http://localhost:3001/bower_components/angular/angular.js:70:12
    at http://localhost:3001/bower_components/angular/angular.js:4551:15
    at forEach (http://localhost:3001/bower_components/angular/angular.js:323:20)
    at loadModules (http://localhost:3001/bower_components/angular/angular.js:4511:5)
    at createInjector (http://localhost:3001/bower_components/angular/angular.js:4433:19)
    at doBootstrap (http://localhost:3001/bower_components/angular/angular.js:1712:20)
    at bootstrap (http://localhost:3001/bower_components/angular/angular.js:1733:12)
    at angularInit (http://localhost:3001/bower_components/angular/angular.js:1618:5)
    at HTMLDocument.<anonymous> (http://localhost:3001/bower_components/angular/angular.js:30713:5)
    at mightThrow (http://localhost:3001/bower_components/jquery/dist/jquery.js:3762:29)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source