[英]Visual Studio 2017 wrong red highlight on export async functions
When writing modules in JS, VS highlight "export async function foo() { code }" as wrong syntax, but it's correct, webpack transpiles it correctly and everything works. 用JS编写模块时,VS会以错误的语法突出显示“导出异步函数foo(){代码}”,但这是正确的,webpack会正确地对其进行编译,一切正常。 I just want it to not be showed as error. 我只是希望它不会显示为错误。 It understands async, but using it with export confuses it greatly. 它了解异步,但是将其与export一起使用会极大地混淆它。 I even tried disabling ESLint implemented in VS to no avail. 我什至尝试禁用在VS中实现的ESLint,但无济于事。 How can I tell it that it's correct? 我怎么能说对了?
Visual Studio 15.8修复了该问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.