arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6')

后端 未结 5 846
暗喜
暗喜 2021-02-05 04:27

Currently I\'m running my tests with protractor/grunt but I\'m getting the follow error message:

\'arrow function syntax (=>)\' is only available in ES6 (use          


        
5条回答
  •  礼貌的吻别
    2021-02-05 04:57

    I have this problem after I installed JSHint. The process for me to solve this problem as below: Preference -> setting -> Extensions -> JSHint Configuration -> options -> add "jshint.options": {"esversion": 6} Done.

提交回复
热议问题