Visual Studio Task Runner Error with ES6

前端 未结 1 1706
情书的邮戳
情书的邮戳 2021-02-04 01:10

I am running Visual Studio 2017 and use the Task Runner to run tasks in my gulpfile. I recently updated a gulp task to ES6 and now am getting this error:

相关标签:
1条回答
  • 2021-02-04 01:39

    Issue solved by un-checking the box for the Node.js binary used by Task Runner:

    In the menu, go to Tools > Options > Projects and Solutions > Web Package Management > External Web Tools and DESELECT the option for $(VSINSTALLDIR)\Web\External

    The version installed in that directory doesn't support ES6 apparently.

    References for solution here and here.

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