So verwenden Sie die Quellzuordnung, um Verkleinerungsfehler zu finden
Ich arbeite mit Angular und RequireJS. Ich habe versucht, die RequireJS-Optimierung zu verwenden, und jetzt funktioniert meine Anwendung nicht mehr. Ich bin sicher, es liegt an der Verkleinerung.
Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.2.0rc1/$injector/modulerr?p0=myapp&p1=Error%3…t%20(http%3A%2F%2Flocalhost%3A8080%2Fwebapp%2Fapp%2Fmain-built.js%3A4%3A10)
Die Fehlermeldung ist nicht sehr hilfreich, um das Problem zu finden. Ich habe mich gefragt, wie ich die Quellzuordnung verwenden kann, um den Fehler im ursprünglichen Quellcode genau zu bestimmen. Ich benutze Chrome zum Debuggen.
Edit: Vollständiger Fehler-Stacktrace
Failed to instantiate module myapp due to:
Error: [$injector:unpr] http://errors.angularjs.org/1.2.0rc1/$injector/unpr?p0=e
at Error (<anonymous>)
at http://localhost:8080/webapp/app/main-built.js:3:19581
at http://localhost:8080/webapp/app/main-built.js:3:31899
at n (http://localhost:8080/webapp/app/main-built.js:3:30540)
at Object.r [as invoke] (http://localhost:8080/webapp/app/main-built.js:3:30716)
at http://localhost:8080/webapp/app/main-built.js:3:30147
at Array.forEach (native)
at o (http://localhost:8080/webapp/app/main-built.js:3:19891)
at i (http://localhost:8080/webapp/app/main-built.js:3:29951)
at yt (http://localhost:8080/webapp/app/main-built.js:4:10