[英]Angular component test error: TypeError Cannot read property 'subscribe' of undefined
[英]Angular Component error in the console: ERROR TypeError: Cannot read property '1' of undefined
目前,我在Chrome控制台中遇到了这个奇怪的错误。 我不知道该如何解决。
PractiseLayoutComponent.html:10 ERROR TypeError: Cannot read property '1' of undefined
at Object.eval [as updateRenderer] (PractiseLayoutComponent.html:10)
at Object.debugUpdateRenderer [as updateRenderer] (core.es5.js:13105)
at checkAndUpdateView (core.es5.js:12256)
at callViewAction (core.es5.js:12599)
at execComponentViewsAction (core.es5.js:12531)
at checkAndUpdateView (core.es5.js:12257)
at callViewAction (core.es5.js:12599)
at execComponentViewsAction (core.es5.js:12531)
at checkAndUpdateView (core.es5.js:12257)
at callWithDebugContext (core.es5.js:13467)
可能我做错了。 不幸的是,还原更改非常昂贵。 无论如何,我绝对应该知道如何应对这种情况。 谁能给一些建议在哪里挖掘?
终端中的ng serve
没有错误。
您应该在第10行查看PractiseLayoutComponent.html。那里可能缺少某些内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.