admin管理员组文章数量:1394217
I'm stacked here with problem with gulp.src, which is only accepts String containing exact file like
gulp.src('index.html')
or array of strings
gulp.src(['index.html', 'home.html', 'products.html'])
but can't handle
gulp.src('./*.html')
or gulp.src(['*.html', './**/*.html']) which is I'm aiming to. I'm always getting this error is I put something different as argument from the first two line:
[15:48:46] Starting 'wiredep'...
[15:48:46] Finished 'wiredep' after 14 ms
events.js:160
throw er; // Unhandled 'error' event
^
TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
Can somebody let me know what I'm doing wrong?
I'm stacked here with problem with gulp.src, which is only accepts String containing exact file like
gulp.src('index.html')
or array of strings
gulp.src(['index.html', 'home.html', 'products.html'])
but can't handle
gulp.src('./*.html')
or gulp.src(['*.html', './**/*.html']) which is I'm aiming to. I'm always getting this error is I put something different as argument from the first two line:
[15:48:46] Starting 'wiredep'...
[15:48:46] Finished 'wiredep' after 14 ms
events.js:160
throw er; // Unhandled 'error' event
^
TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
Can somebody let me know what I'm doing wrong?
Share Improve this question asked Jan 27, 2017 at 14:57 VladynVladyn 5831 gold badge6 silver badges20 bronze badges1 Answer
Reset to default 6gulp.src('./*.html')
and
gulp.src(['*.html', './**/*.html'])
are valid globs.
Maybe one of your .html file is empty and the wiredep plugin tries to load an undefined stream which causes the TypeError.
本文标签:
版权声明:本文标题:javascript - Gulp.src throws 'First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.' 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744611034a2615655.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论