gulp-svg-sprite: Latest Node version on windows causes [Build Error] Skipping "%s" (%s) error
Hi!
Until this morning I had a perfectly fine working gulp-svg-sprite (v 1.2.19) task running with the following config:
{
mode: {
defs: {
dest: '',
sprite: 'service-icons.svg'
}
},
svg: {
xmlDeclaration: false,
doctypeDeclaration: false
}
}
And the following Gulp task:
gulp.task('service-icons', function () {
return gulp.src(config.src + 'images/service-icons/*')
.pipe(svgmin())
.pipe(svgsprite(config.svgConfig))
.pipe(gulp.dest(config.build + config.img.svg.path));
});
This morning I’ve updated node.js to the latest version on Windows (via node-v4.3.1-x86.msi). Since then I’ve got the following build error on the gulp-svg-sprite task.
Skipping “%s” (%s) error
Can’t get it to work anymore, what I’ve tried/concluded this far:
- my svg source files do not contain ‘%s’
- disabling SVGO via transform: [] does not solve it
- Adding { prefix: ‘’ } to config > mode.defs does not solve it
- disabling svgmin() does not solve it.
- restarting pc after node install and updated dependencies
Any help, tips or tricks would be much appreciated, thanks in advance!
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16
Insane stupidity on my end: one of the source svgs was malformed. But: the error message could have been more clear about the error’s nature.
I’m an idiot! Solved by changing:
to
could this be your problem too @codev0 ?
I had the same problem and tried all solutions above, but it still was an error, problem was in one of the svg files generated by Avocode, in the title of the svg file was non-breakable space “& nbsp;” after removing which, gulp started working correctly.