Angular 如何调试从AOT编译、汇总的应用程序生成的build.js

Angular 如何调试从AOT编译、汇总的应用程序生成的build.js,angular,debugging,rollup,angular-compiler-cli,Angular,Debugging,Rollup,Angular Compiler Cli,我有angular 2应用程序,它在JIT编译时运行得非常好。现在对于Prod,我使用AOT编译和汇总创建一个bundle文件。当我运行应用程序时,我在Chrome开发工具的控制台中得到了这个错误 drainMicroTaskQueue@zone.js:613 TSconfig-aot.json { “编译器选项”:{ “目标”:“es5”, “模块”:“es2015”, “moduleResolution”:“节点”, “源地图”:正确, “emit decoromentadata”:正确

我有angular 2应用程序,它在JIT编译时运行得非常好。现在对于Prod,我使用AOT编译和汇总创建一个bundle文件。当我运行应用程序时,我在Chrome开发工具的控制台中得到了这个错误


drainMicroTaskQueue@zone.js:613 TSconfig-aot.json

{
“编译器选项”:{
“目标”:“es5”,
“模块”:“es2015”,
“moduleResolution”:“节点”,
“源地图”:正确,
“emit decoromentadata”:正确,
“实验生态学者”:没错,
“lib”:[“es2015”,“dom”],
“SuppressImplicationIndexErrors”:true,
“noImplicitAny”:错,
“allowSyntheticDefaultImports”:true
},
“排除”:[
“节点_模块”,
“wwwroot”
],
“文件”:[
“Scripts/app/app.module.ts”,
“Scripts/app/main.ts”
],
“角度编译器选项”:{
“genDir”:“aot”,
“skipMetadataEmit”:真
}
}
Error: Uncaught (in promise): TypeError: Illegal constructor
TypeError: Illegal constructor
at new e (http://localhost:61102/app/build.js:14:6950)
at e.createInternal (http://localhost:61102/app/build.js:47:22406)
at e.t.createHostView (http://localhost:61102/app/build.js:7:10163)
at t.create (http://localhost:61102/app/build.js:6:6211)
at e.bootstrap (http://localhost:61102/app/build.js:6:13675)
at http://localhost:61102/app/build.js:6:11927
at Array.forEach (native)
at e._moduleDoBootstrap (http://localhost:61102/app/build.js:6:11898)
at http://localhost:61102/app/build.js:6:11228
at ZoneDelegate.invoke (http://localhost:61102/js/zone.js:365:26)
at Object.onInvoke (http://localhost:61102/app/build.js:5:13894)
at ZoneDelegate.invoke (http://localhost:61102/js/zone.js:364:32)
at Zone.run (http://localhost:61102/js/zone.js:125:43)
at http://localhost:61102/js/zone.js:760:57
at ZoneDelegate.invokeTask (http://localhost:61102/js/zone.js:398:31)
at Object.onInvokeTask (http://localhost:61102/app/build.js:5:13794) [angular]
____________________Elapsed_3_ms__At__Thu_Mar_16_2017_16_09_17_GMT_0530__India_Standard_Time_@[native code]
at Object.onScheduleTask (http://localhost:61102/js/zone.js:274:29) [angular]
at resolvePromise (http://localhost:61102/js/zone.js:707:21) [angular]
at Object.onInvokeTask (http://localhost:61102/app/build.js:5:13794) [angular]
____________________Elapsed_9_ms__At__Thu_Mar_16_2017_16_09_17_GMT_0530__India_Standard_Time_@[native code]
at Object.onScheduleTask (http://localhost:61102/js/zone.js:274:29) [angular]
at resolvePromise (http://localhost:61102/js/zone.js:707:21) [angular]
at http://localhost:61102/js/zone.js:760:17 [angular]
at Object.onInvokeTask (http://localhost:61102/app/build.js:5:13794) [angular]
____________________Elapsed_17_ms__At__Thu_Mar_16_2017_16_09_17_GMT_0530__India_Standard_Time_@[native code]
at Object.onScheduleTask (http://localhost:61102/js/zone.js:274:29) [angular]
at new t (http://localhost:61102/app/build.js:4:30262) [angular]
at e.createInternal (http://localhost:61102/app/build.js:49:30624) [angular]
at e.create (http://localhost:61102/app/build.js:6:16079) [angular]
at t.create (http://localhost:61102/app/build.js:6:15833) [angular]
t.handleError @ build.js:4
next @ build.js:6
e.object.r @ build.js:5
e.__tryOrUnsub @ build.js:5
e.next @ build.js:5
e._next @ build.js:5
e.next @ build.js:5
e.next @ build.js:5
e.emit @ build.js:5
t.triggerError @ build.js:5
onHandleError @ build.js:5
ZoneDelegate.handleError @ zone.js:369
Zone.runGuarded @ zone.js:141
_loop_1 @ zone.js:604