question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Broken output in symbols mode

See original GitHub issue

This happens when i use symbols mode:

<symbol id="BG" viewBox="0 0 595.279 841.89">[object Object] [object Object] </symbol>

This is my task:

gulp.task('svg', function () {
    return gulp.src('images/svg/*.svg')
        .pipe(svgSprite({
            mode: "symbols"
        }))
        .pipe(gulp.dest('images/svg/test/'));
});

and i tried so

gulp.task('svg', function () {
    return gulp.src('images/svg/*.svg')
        .pipe(svgSprite({
            mode: "symbols"
            svg: {
                symbols: 'symbol_sprite.html'
            }
        }))
        .pipe(gulp.dest('images/svg/test/'));
});

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:11
  • Comments:12

github_iconTop GitHub Comments

9reactions
Makvagabocommented, Sep 9, 2016

windows 10 x64 The same problem!!! I solved this problem by changing the pattern “symbols.svg” <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="0" height="0" style="position:absolute"> <% _.forEach(svg, function(svgItem) { %> <symbol id="<%= svgItem.name %>" viewBox="<%= svgItem.viewBox %>"> <%= svgItem.data.replace(/<svg.*?>(.*?)<\/svg>/, "$1") %> </symbol> <% }); %> </svg>

6reactions
bambamboolecommented, Aug 28, 2016

+1 same problem here on MacOS

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keyboard problems - wrong symbols __ - Microsoft Community
Your computer is likely setup for multiple keyboard layouts and a hotkey has been inadvertently pressed to switch between layouts. Open the ...
Read more >
Symbols appear instead of letters/numbers when typing on Mac
Your qwertyuiop result indicates that your machine thinks that both option and shift are being held down while you type. The symbols are...
Read more >
Mac keyboard typing wrong letters & symbols - Fixed - YouTube
how to fix apple macbook keyboard typing symbols instead of charactersHow to change mac Input source & Keyboard Typehow to change keyboard ...
Read more >
4 Ways to Fix a Keyboard That Has the Wrong Characters
1. Check the NumLock and Fn+NumLock keys. Many laptops will convert a good chunk of the keyboard into a number pad if NumLock...
Read more >
Keyboard typing weird letters and symbols - Apple Community
Keyboard typing weird letters and symbols. Hi all. I have tried to use my Macbook Pro this morning and when I type its...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found