Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing positive glob #5

Open
TCB13 opened this issue Oct 4, 2016 · 2 comments
Open

Missing positive glob #5

TCB13 opened this issue Oct 4, 2016 · 2 comments

Comments

@TCB13
Copy link

TCB13 commented Oct 4, 2016

I'm getting the following error:

[12:57:02] Error: Missing positive glob

Guess there was some BC on gulp or a dependency causing this? Thank you.

@trisys3
Copy link

trisys3 commented Nov 11, 2016

This usually happens when no files are given to the stream. It's a stupid rule in my opinion, but there you go.

@linusok
Copy link

linusok commented Oct 8, 2017

@trisys3

yes, i also find it. this error comes when we support a tag selector not exist in target html file.

for example:
gulp.task('test',function(){
console.log('test');
return gulp.src(‘./app/xx.html’,function(err,files){
files.map(function(entry){
console.log(entry);
var fileName = path.basename(entry,".html");
var cwd=process.cwd();
var relativePath = path.relative(cwd,entry);
var fullPath=path.join(cwd,relativePath);
if(!relativePath) return;
//if target html file does not have the selector 'img',it will come a error 'missing positive glob'.it is bad exactly when processing the batch html files. it is also a faulty that not support the physical path
var ret = domSrc({file:relativePath,selector:'img',attribute:'src'});
ret.pipe(gulp.dest('dist/images'));
})
})
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants