When running gulp, I get

/home/codio/workspace/sites/all/themes/sport_2014/node_modules/g
ulp-autoprefixer/node_modules/postcss/lib/lazy-result.js:157    
        this.processing = new Promise(function (resolve, reject)
 {                                                              
                              ^                                 
ReferenceError: Promise is not defined                          
    at LazyResult.async (/home/codio/workspace/sites/all/themes/
sport_2014/node_modules/gulp-autoprefixer/node_modules/postcss/l
ib/lazy-result.js:157:31)                                       
    at LazyResult.then (/home/codio/workspace/sites/all/themes/s
port_2014/node_modules/gulp-autoprefixer/node_modules/postcss/li
b/lazy-result.js:79:21)                                         
    at DestroyableTransform._transform (/home/codio/workspace/si
tes/all/themes/sport_2014/node_modules/gulp-autoprefixer/index.j
s:24:6)                                                         
    at DestroyableTransform.Transform._read (/home/codio/workspa
ce/sites/all/themes/sport_2014/node_modules/gulp-autoprefixer/no
de_modules/through2/node_modules/readable-stream/lib/_stream_tra
nsform.js:159:10)                                               
    at DestroyableTransform.Transform._write (/home/codio/worksp
ace/sites/all/themes/sport_2014/node_modules/gulp-autoprefixer/n
ode_modules/through2/node_modules/readable-stream/lib/_stream_tr
ansform.js:147:83)                                              
    at doWrite (/home/codio/workspace/sites/all/themes/sport_201
4/node_modules/gulp-autoprefixer/node_modules/through2/node_modu
les/readable-stream/lib/_stream_writable.js:313:64)             
    at writeOrBuffer (/home/codio/workspace/sites/all/themes/spo
rt_2014/node_modules/gulp-autoprefixer/node_modules/through2/nod
e_modules/readable-stream/lib/_stream_writable.js:302:5)        
    at DestroyableTransform.Writable.write (/home/codio/workspac
e/sites/all/themes/sport_2014/node_modules/gulp-autoprefixer/nod
e_modules/through2/node_modules/readable-stream/lib/_stream_writ
able.js:241:11)                                                 
    at write (/home/codio/workspace/sites/all/themes/sport_2014/
node_modules/gulp-sass/node_modules/through2/node_modules/readab
le-stream/lib/_stream_readable.js:623:24)                       
    at flow (/home/codio/workspace/sites/all/themes/sport_2014/n
ode_modules/gulp-sass/node_modules/through2/node_modules/readabl
e-stream/lib/_stream_readable.js:632:7)     

Comments

lsolesen created an issue. See original summary.

lsolesen’s picture

Can be fixed by

    npm install es6-promise

and adding this to the top of your gulpfile.js:

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

Wonder whether it is caused by my version of node?

shadcn’s picture

Yeah I'm not seeing this issue on mine. Which version are you running?

lsolesen’s picture

node --version
v0.10.25
shadcn’s picture

I'm on:

node --version
v4.2.1
shadcn’s picture

Status: Active » Closed (works as designed)

Closing this issue. Feel free to reopen if you're still seeing the bug. Thanks.