在Google Chrome更新之前,我在网络标签上的Chrome Devtools中看到了源地图文件.现在,在更新到版本后43.0.2357.134 m我没有看到它们.
也许我的代码错了?或者有意隐藏那些源地图?
我使用Angular和RequireJS.我尝试使用RequireJS优化,现在我的应用程序无法正常工作.我确信这是由于缩小.
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)
错误消息对查找问题没有多大帮助,所以我想知道如何使用源映射来查明原始源代码中的错误.我用Chrome来调试.
编辑:完整错误堆栈跟踪
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
Run Code Online (Sandbox Code Playgroud)