Gulp-autoprefixer throwing ReferenceError: Promise is not defined

后端 未结 4 1952
长情又很酷
长情又很酷 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条回答
  •  -上瘾入骨i
    2021-01-30 02:31

    Had the same issue. For me, updating node didn't work but adding this at the very beginning of my gulpfile did:

    require('es6-promise').polyfill();
    

提交回复
热议问题