我在控制台中收到一个错误`ERROR错误:“ [object Object]”,我的应用程序只有白色屏幕。一切正常,我想都不能改变。它显示为在core.js中而不是我的代码中,因此如何调试呢?
我的应用程序是Angular版本7。很久以前,它是版本2,但是随着时间的推移已经升级。
答案 0 :(得分:0)
将对象转换为json格式
如果您使用易于打印的管道线
let item of array | json
在ngfor循环中
答案 1 :(得分:0)
Figured it out. I had added code which tried to read environment variables from process.env
. I figured this out by slowly reviewing all code that had gone in to the code base recently. Hope Angular gets better debugging soon. App built successfully with no error, yet failed at run time with no hint as to where in my code it was.