最佳答案
当我试图使用打字机打字时,比如:
.reduce((unique, x) => {
unique.some(element => element.machineName === x.machineName) ? unique : [...unique, x];
}
我从 Visual Studio Code
得到红色标记的警告:
the syntax requires an imported helper named __spreadArrays
typescript version: "2.3.4"
target: "es5"
我认为在以后的版本中这个问题已经解决了,但是现在我不能迁移,我该怎么解决呢?
注意: 项目编译良好,工作正常。但是红色底层在 VS Code
中很烦人。