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 enter gulp and below is the error log that is displayed on my terminal:
[15:03:45] Using gulpfile /var/www/html/cleveland-latest/gulpfile.js
[15:03:45] Starting 'clean'...
[15:03:45] Finished 'clean' after 9.43 ms
[15:03:45] Starting 'default'...
[15:03:45] Starting 'views'...
[15:03:45] Starting 'styles'...
[15:03:46] Starting 'scripts'...
[15:03:46] Starting 'images'...
[15:03:46] Starting 'fonts'...
[15:03:46] Starting 'extras'...
[15:03:46] Finished 'default' after 488 ms
[15:03:46] Finished 'images' after 146 ms
[15:03:46] Finished 'views' after 640 ms
[15:03:46] Finished 'styles' after 579 ms
[15:03:46] Finished 'scripts' after 448 ms
[15:03:46] Starting 'html'...
[15:03:46] unicorn: .tmp/index.html
/var/www/html/cleveland-latest/node_modules/gulp-useref/node_modules/vinyl-fs/lib/src/index.js:32
throw new Error('Invalid glob argument: ' + glob);
^
Error: Invalid glob argument:
at Object.src (/var/www/html/cleveland-latest/node_modules/gulp-useref/node_modules/vinyl-fs/lib/src/index.js:32:11)
at DestroyableTransform.module.exports.addAssetsToStream (/var/www/html/cleveland-latest/node_modules/gulp-useref/lib/streamManager.js:85:23)
at /var/www/html/cleveland-latest/node_modules/gulp-useref/lib/streamManager.js:142:47
at Array.forEach (native)
at DestroyableTransform.module.exports.processAssets (/var/www/html/cleveland-latest/node_modules/gulp-useref/lib/streamManager.js:133:19)
at DestroyableTransform.module.exports.processFilesAndAssets (/var/www/html/cleveland-latest/node_modules/gulp-useref/lib/streamManager.js:172:39)
at /var/www/html/cleveland-latest/node_modules/gulp-useref/lib/streamManager.js:182:47
at Stream.<anonymous> (/var/www/html/cleveland-latest/node_modules/event-stream/index.js:306:20)
at _end (/var/www/html/cleveland-latest/node_modules/through/index.js:65:9)
at Stream.stream.end (/var/www/html/cleveland-latest/node_modules/through/index.js:74:5)
at DestroyableTransform.onend (/var/www/html/cleveland-latest/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:495:10)
at DestroyableTransform.g (events.js:260:16)
at emitNone (events.js:72:20)
at DestroyableTransform.emit (events.js:166:7)
at DestroyableTransform.module.exports.transformFunction [as _transform] (/var/www/html/cleveland-latest/node_modules/gulp-useref/lib/streamManager.js:188:39)
at DestroyableTransform.Transform._read (/var/www/html/cleveland-latest/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:159:10)
The text was updated successfully, but these errors were encountered:
silvenon
changed the title
throw new Error('Invalid glob argument: ' + glob); when running gulp
Invalid glob argument when building using the Nunjucks recipe
May 12, 2016
@srahulprdxn hey! I tried following the recipe myself and everything worked. I'm pretty sure that in your default.njk (or whatever your layout file is called) between comment blocks you are referencing a file which doesn't exist, so gulp-useref crashes. Could you also paste your .njk templates? Did this happen on a fresh install? Did you modify anything else than what the recipe instructed?
I enter gulp and below is the error log that is displayed on my terminal:
I have edited gulpfile with the nunjucks recipe:
Node version:
4.4.4
NPM version
3.8.9
The text was updated successfully, but these errors were encountered: