![](/img/trans.png)
[英]The serve command requires to be run in an Angular project, but a project definition could not be found?
[英]could not run but it compiles fine Angular Project
这是我检查浏览器控制台时得到的结果,该项目过去工作正常,但突然因此错误而停止:
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>)
这是因为在某些情况下, visit的值可能为空。 只需找到填充值的位置即可。 然后你就可以知道这个值是 undefined
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.