当我检查浏览器的控制台时,这就是我得到的,该项目过去运行正常,突然因该错误而停止:
TypeError: Cannot read property 'visit' of undefined
at convertPropertyBinding (compiler.js:7084)
at compiler.js:22230
at Array.map (<anonymous>)
at createUpdateStatements (compiler.js:22226)
at compiler.js:22208
at Array.map (<anonymous>)
at ViewBuilder.push../node_modules/@angular/compiler/fesm5/compiler.js.ViewBuilder._createNodeExpressions (compiler.js:22205)
at ViewBuilder.push../node_modules/@angular/compiler/fesm5/compiler.js.ViewBuilder.build (compiler.js:21677)
at compiler.js:21676
at Array.forEach (<anonymous>)
答案 0 :(得分:0)
这是因为,在某些情况下,访问的值可能为空。 只需找到从中填充值的位置。然后您就可以知道未定义的值