繁体   English   中英

控制台中的角度组件错误:错误TypeError:无法读取未定义的属性“ 1”

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM