jeudi 16 avril 2015

gulp RangeError: Maximum call stack size exceeded

I got a problem.





var exculde = ['!node_modules{,/**}', '!assets{,/**}'];

function watcher() {...}

gulp
.watch([].concat(process.cwd() + '**/*', exculde))
.on('change', watcher);



will throw Error



[17:03:49] RangeError: Maximum call stack size exceeded
at Gaze._pollFile (/Users/xbird/Sites/genes/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:331:19)
at /Users/xbird/Sites/genes/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:411:12
at Array.forEach (native)
at /Users/xbird/Sites/genes/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:409:11
at iterate (/Users/xbird/Sites/genes/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/helper.js:52:5)
at /Users/xbird/Sites/genes/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/helper.js:61:11
at /Users/xbird/Sites/genes/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:420:5
at iterate (/Users/xbird/Sites/genes/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/helper.js:52:5)
at /Users/xbird/Sites/genes/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/helper.js:61:11
at /Users/xbird/Sites/genes/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:420:5


Now i have found anthor way to solve my problem, but i want to know this ERROR!


Aucun commentaire:

Enregistrer un commentaire