Gulp-autoprefixer throwing ReferenceError: Promise is not defined

后端 未结 4 1959
长情又很酷
长情又很酷 2021-01-30 02:18

I try to make a gulp compile my sass then autoprefixit with gulp-autoprefixer but i\'m getting an error.

var gulp = require(\'gulp\'),
    sass = re         


        
4条回答
  •  醉酒成梦
    2021-01-30 02:48

    Install es6-promise in ur project location where package.json exists

    npm install es6-promise
    

    Then make the first line of your gulpfile.js be the following code:

    var Promise = require('es6-promise').Promise;
    

提交回复
热议问题