Closed AndrewNimbler closed 6 years ago
'SyntaxError: Use of const in strict mode.'
That means you're running it in a Node.js version lower than version 4, despite what you added in the Environment section. You probably have multiple Node.js versions installed and somehow and an old one is used.
I'm trying to run a autoprefixer task in gulp using the standard example code from the readme file inside a external file loaded into the gulpfile using 'module.exports' & I get a 'SyntaxError: Use of const in strict mode.' error message, am I doing anything wrong? I've tried adding 'use strict'; to all the files & installing 'gulp-util', but nothing seems to work.
Edit: I tried this with gulp autoprefixer v3.1.1 & after I installed the es6 promise-polyfill it worked.
Error message:
Task configuration:
Environment: