WebStorm is highlighting basic JavaScript syntax as being incorrect in a nodejs file

前端 未结 1 1016
无人共我
无人共我 2021-01-23 09:24

WebStorm is highlighting my server setup file as having syntax errors that definitely aren\'t. This is a nodeJs file...

Is there something I can do to help WebStorm to

相关标签:
1条回答
  • 2021-01-23 10:09

    Check your JavaScript language version in Preferences -> Languages & Frameworks -> JavaScript. Be sure it's set to ECMAScript 6, since you are using ES2015 syntax.

    0 讨论(0)
提交回复
热议问题