gulp-svg-sprite
gulp-svg-sprite copied to clipboard
Unable to get proper error
This is my conf :
const configSvgSprite = {
shape: {
spacing: { // Add padding
padding: 10
}
},
mode: {
css: { // Activate the «css» mode
prefix: '.icon-',
sprite: '../' + joli.build + '/assets/svg/',
layout: 'vertical',
bust: true, //Cache busting
render: {
scss: { // Activate Sass output
template: joli.src + '/styles/sprite-tmpl/',
dest: '../' + joli.src + '/styles/_sprite'
},
}
},
}
};
gulp.task('svgSprite', function () {
return gulp.src([joli.src + '/svg/common/**/*.svg', joli.src + '/svg/' + joli.environment + '/**/*svg'])
.pipe(svgSprite(configSvgSprite))
.on('error', function(error){
console.log(error);
})
.pipe(gulp.dest('out'));
});
I have the same problem:
{ [Error: Optimizing "%s" with SVGO failed with error "%s"]
message: 'Optimizing "%s" with SVGO failed with error "%s"',
showStack: false,
showProperties: true,
plugin: 'gulp-svg-sprite',
__safety: { toString: [Function: bound ] } }
Exact same issue here. Node 16.14.2, Gulp 4.0.2, gulp-svg-sprite 2.0.1
This issue began when I updated to 2.0.1 of this plugin - I've been using it for years without issues before this.
I'd like to report the same issue with: Node 16.15.1, Gulp 4.0.2, gulp-svg-sprite 2.0.1
Through debugging, I can see though that this comes from svgo.