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.

SCSS: Namespace prefix xlink for href on use is not defined

See original GitHub issue

When I include svg in scss file, svg image can not display due to missing xmlns:xlink="http://www.w3.org/1999/xlink"

I’ve already created PR https://github.com/cascornelissen/svg-spritemap-webpack-plugin/pull/38 https://github.com/cascornelissen/svg-spritemap-webpack-plugin/pull/39

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tungquachcommented, Jun 10, 2018

svg_sprites.zip Here is it, Cas!

0reactions
cascornelissencommented, Jul 15, 2018

Hi @tungquach, sorry for taking so long. I inspected your example but the dashboard.svg does have the correct xmlns:xlink namespace and still doesn’t show so I’m either misunderstanding what you mean or you’re running into another problem than the one you’re describing.

Let me know!

Read more comments on GitHub >

github_iconTop Results From Across the Web

SVG Namespace prefix xlink for href on image is not defined
The <svg> element is missing the declaration of the xlink namespace, although it is used in the <image> elements.
Read more >
error on line 39 at column 26: Namespace prefix xlink for href ...
CSS : error on line 39 at column 26: Namespace prefix xlink for href on script is not defined [ Beautify Your Computer ......
Read more >
Namespace prefix xlink for href on script is not defined ...
i am embedding a javascript file inside an svg file like this: <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" ...
Read more >
xlink:href - SVG: Scalable Vector Graphics - MDN Web Docs
The xlink:href attribute defines a reference to a resource as a reference IRI. The exact meaning of that link depends on the context...
Read more >
XLink Namespace Declaration - Journal Article Tag Suite
This is not an attribute, but the namespace pseudo-attribute. The value provides a prefix to use for the XLink linking attributes.
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