You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use gulp-modernizr, but without success... Following the instructions, I installed it via npm (referencing the git repo, as descibed in #2) and put in my gulpfile.js:
gulp.task('modernizr',function(){gulp.src('[path]/js/*.js').pipe(modernizr()).pipe(gulp.dest([path]));// In README this line is wrong, just "dest()"});
But I'm always getting this error (trying watch or run directly with gulp modernizr):
Looking for Modernizr references
[...]/node_modules/gulp-modernizr/node_modules/customizr/node_modules/promised-io/promise.js:242
throw error;
^
TypeError: Cannot read property 'length' of undefined
at Object.parseCodeFromBuffers ([...]/node_modules/gulp-modernizr/node_modules/customizr/src/crawler.js:152:27)
at Object.init ([...]/node_modules/gulp-modernizr/node_modules/customizr/src/crawler.js:241:18)
at next ([...]/node_modules/gulp-modernizr/node_modules/customizr/node_modules/promised-io/promise.js:584:17)
at notify ([...]/node_modules/gulp-modernizr/node_modules/customizr/node_modules/promised-io/promise.js:201:22)
at Deferred.then.promise.then ([...]/node_modules/gulp-modernizr/node_modules/customizr/node_modules/promised-io/promise.js:262:4)
at Object.exports.when ([...]/node_modules/gulp-modernizr/node_modules/customizr/node_modules/promised-io/promise.js:364:20)
at next ([...]/node_modules/gulp-modernizr/node_modules/customizr/node_modules/promised-io/promise.js:584:12)
at Object.exports.seq ([...]/node_modules/gulp-modernizr/node_modules/customizr/node_modules/promised-io/promise.js:592:2)
at Object.Customizr.init ([...]/node_modules/gulp-modernizr/node_modules/customizr/src/index.js:26:12)
at Object.Customizr ([...]/node_modules/gulp-modernizr/node_modules/customizr/src/index.js:16:15)
In which point I'm writing wrong code?
Regards!
The text was updated successfully, but these errors were encountered:
I'm trying to use gulp-modernizr, but without success... Following the instructions, I installed it via npm (referencing the git repo, as descibed in #2) and put in my
gulpfile.js
:But I'm always getting this error (trying
watch
or run directly withgulp modernizr
):In which point I'm writing wrong code?
Regards!
The text was updated successfully, but these errors were encountered: