gulp-svg-sprite icon indicating copy to clipboard operation
gulp-svg-sprite copied to clipboard

Unable to get proper error

Open Baldrani opened this issue 6 years ago • 1 comments

capture d ecran 2018-06-21 a 14 43 08

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'));
});

Baldrani avatar Jun 21 '18 12:06 Baldrani

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 ] } }

tcoldmf avatar Jun 04 '19 09:06 tcoldmf

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.

cmalven avatar Nov 16 '22 17:11 cmalven

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.

Naoto-Ida avatar Dec 20 '22 11:12 Naoto-Ida