sindresorhus / gulp-autoprefixer

Prefix CSS
MIT License
692 stars 50 forks source link

After upgrading - no longer works with gulp-sass #81

Closed michaelBenin closed 7 years ago

michaelBenin commented 7 years ago

Hello,

After upgrading to the latest today this stopped working:

gulp.task('sass-dev', function sassDev() {
  const targetProps = config.styles.main;
  const { cssDest, stylesSrc, sassConf, autoprefixerBrowsers } = targetProps;

  return gulp.src(stylesSrc)
    .pipe(sourcemaps.init())
    .pipe(sass(sassConf).on('error', sass.logError))
    .pipe(autoprefixer(autoprefixerBrowsers))
    .pipe(sourcemaps.write())
    .pipe(gulp.dest(cssDest))
    .pipe(livereload({ file: 'http://localhost:3000/dist/static/css/main.css' }));
});
events.js:154
      throw er; // Unhandled 'error' event
      ^
TypeError: this is not a typed array.
    at Function.from (native)
    at /Users/mbenin/Projects/fc-2017-app/node_modules/gulp-autoprefixer/index.js:25:27
    at run (/Users/mbenin/Projects/fc-2017-app/node_modules/karma/node_modules/core-js/modules/es6.promise.js:87:22)
    at /Users/mbenin/Projects/fc-2017-app/node_modules/karma/node_modules/core-js/modules/es6.promise.js:100:28
    at flush (/Users/mbenin/Projects/fc-2017-app/node_modules/karma/node_modules/core-js/modules/_microtask.js:18:9)
    at nextTickCallbackWith0Args (node.js:453:9)
    at process._tickDomainCallback (node.js:423:13)
sindresorhus commented 7 years ago

Note the Node.js version requirement: https://github.com/sindresorhus/gulp-autoprefixer/blob/51886049f1b2bf1e3ac0631ef2a48137f4acfe10/package.json#L13

kaatula commented 7 years ago

That is perfectly reproducible with node 5.9.1 Looks like requirement is not true

las3r commented 7 years ago

This is also reproducible in node 8.4.0, so something is still wrong.

xumix commented 6 years ago

Same here!

bernig commented 6 years ago

Same here :(

fgrs commented 6 years ago

same issue with node 6.10.0 and 8.9.4