一、错误
如下图:
Export declarations are not supported by current JavaScript versio
二、原因

let是EcmaScript 6 里面才有的关键字,以往的版本没有,所以要改一下webstorm的javascript版本

三、解决方式
File->Setting->Languages & Frameworks,然后选择【ECMAScript 6】,点击Apply OK,问题解决。
Export declarations are not supported by current JavaScript versio四、解决后的效果图如下:
Export declarations are not supported by current JavaScript versio

相关文章: