"Unable to access jarfile" error
williamliew opened this issue · comments
Hey,
This plugin was throwing this error. I found the cause was that my file directory had a space in it e.g. "Documents/Web Dev/Project". Changed it to "/Websites" and it fixed.
I've been told it's bad practice to have spaces in your folder names but thought you might want to know.
I'm not too sure if you want to fix this or not but there might be others who don't know any better like me
Thanks!
@williamliew Hello! Thanks for using gulp-html.
Have you tried to escape the space in file name?
- gulp.src('Documents/Web Dev/Project')
+ gulp.src('Documents/Web\ Dev/Project')
I hope to be able to solve the problem!
Hey,
Thanks for the fast response!
// HTML
gulp.task('html', function() {
return gulp.src('./index.html')
.pipe(validator())
.pipe(gulp.dest('dist/'));
});
[23:41:08] Using gulpfile ~/Web Dev/haveLunch/gulpfile.js
[23:41:08] Starting 'html'...
events.js:72
throw er; // Unhandled 'error' event
^
Error: Error: Unable to access jarfile /Users/wliew/Web
So that was the error it was throwing out with the gulp task example on the readme. I hope I'm not doing something completely wrong!