Javascript 无法运行,但它编译了精细的角度项目

Javascript 无法运行,但它编译了精细的角度项目,javascript,angular,typescript,Javascript,Angular,Typescript,以下是我检查浏览器控制台时得到的结果,该项目过去工作正常,但突然因此错误而停止: 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

以下是我检查浏览器控制台时得到的结果,该项目过去工作正常,但突然因此错误而停止:

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>) 
TypeError:无法读取未定义的属性“visit”
在convertPropertyBinding(compiler.js:7084)
在compiler.js:22230
在Array.map()处
在createUpdateStatements(compiler.js:22226)
在compiler.js:22208
在Array.map()处
在ViewBuilder.push../node_modules/@angular/compiler/fesm5/compiler.js.ViewBuilder._createNodeExpressions(compiler.js:22205)
在ViewBuilder.push../node_modules/@angular/compiler/fesm5/compiler.js.ViewBuilder.build(compiler.js:21677)
在compiler.js:21676
在Array.forEach()处

这是因为在某些情况下,visit的值可能为空。
只需找到填充值的位置。然后您可能会知道值未定义

请提供相关的typescript代码,您可能正在访问
Array.map
回调中未定义项的
visit
属性。这是npm问题,是编译器中的问题,所有“console.log”语句都带有红色下划线(好像npm包丢失了一样)我已经在Windows上重新安装了nodejs,我已经重新安装了项目的nodemodule包,没有任何变化,我解决了它!我有一个{{//empty tag}