How to find the missing injector error?

I am moving some basic angular materials into a new project. Now I get errors in the injector, but the name of the class of abusive errors in the injection does not appear on the page with the stacktrace / angular error. All I get is

Error: $injector:modulerr
Module Error

Usually there is a class name. Now I need to go through each class (tens and tens) and check the import manually. Isn't there a better way? I saw this by simply adding classes. Sometimes it shows the name of the missing injection, sometimes it just ends if otherwise stacktrace correctly identifies the missing / bad injection.

Is there any additional debugging mode with which I can get this information?

Full (unused) stacktrace:

Failed to instantiate module FSApp due to:
Error: [$injector:modulerr] http://errors.angularjs.org/1.2.16/$injector/modulerr?p0=FSApp&p1=Error…cape%2Fmain%2Fresources%2Flib%2Fangular-1.2.16%2Fangular.min.js%3A32%3A445)
    at Error (native)
    at http://fs/main/resources/lib/angular-1.2.16/angular.min.js:6:450
    at http://fs/main/resources/lib/angular-1.2.16/angular.min.js:33:332
    at Array.forEach (native)
    at q (http://fs/main/resources/lib/angular-1.2.16/angular.min.js:7:280)
    at e (http://fs/main/resources/lib/angular-1.2.16/angular.min.js:32:445)
    at http://fs/main/resources/lib/angular-1.2.16/angular.min.js:33:18
    at Array.forEach (native)
    at q (http://fs/main/resources/lib/angular-1.2.16/angular.min.js:7:280)
    at e (http://fs/main/resources/lib/angular-1.2.16/angular.min.js:32:445

, . . angular. , .

+4
1

:

A : angular .

, ( ), , . , .

, ( ). angular 1.3 "ng = strict-di" , ng-app, - ( " ($ scope, service, something)" ), , , , .

+2

Source: https://habr.com/ru/post/1546639/


All Articles