![](/img/trans.png)
[英]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.