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:
Failed to run "C:\Users\nz9rcn\Code\WebUI\Gulpfile.js"...
cmd.exe /c gulp --tasks-simple
C:\Users\nz9rcn\Code\WebUI\gulp-tasks\lesslint.js:5
let fail = false;
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:404:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at task (C:\Users\nz9rcn\Code\WebUI\gulpfile.js:24:25)
at Object.<anonymous> (C:\Users\nz9rcn\Code\WebUI\gulpfile.js:37:23)
at Module._compile (module.js:397:26)
Can't find a place to adjust the settings causing this error (strict mode). Please help. Thanks