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.

Missing namespace

See original GitHub issue

It seems that the dist versions of the icons, are missing the namespace tag?

<svg fill="none" viewBox="0 0 24 24" stroke="currentColor">
vs.
<svg xmlns="http://www.w3.org/2000/svg"  fill="none" viewBox="0 0 24 24" stroke="currentColor">

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
vvocommented, May 6, 2020

@adamwathan Because of missing xmlns, I got multiple issues when trying to preview the svg:

  • in VSCode most extensions will fail at previewing them
  • on MacOS (Biggest issue for me), preview won’t work, see:

image

vs

image

Removal of xmlns would be better handled by the user/compiler you’re using. For example in React https://react-svgr.com/docs/webpack/ does it by default.

Thoughts?

0reactions
jsmithcommented, Jul 30, 2020

@vvo this is the repo that needs to be updated -> https://github.com/codex-src/react-heroicons

Read more comments on GitHub >

github_iconTop Results From Across the Web

The type or namespace cannot be found (are you missing a ...
In my case, I was getting: "The type or namespace name 'UserVoice' could not be found (are you missing a using directive or...
Read more >
Resolve Missing Namespaces in Code Samples
In this article we will demo a few cases of code snippets that contain unidentified classes and see how to resolve the missing...
Read more >
C# the type or namespace name could not be found (are you ...
The problem is that it can't find the class - it's not in the same namespace as your current code. That may be...
Read more >
Missing Namespace Errors in My .NET Project - NI - Support
When I build my Measurement Studio project in Visual Studio I get an error that states The type or namespace does not exist...
Read more >
Missing namespace for foo
This element is in a namespace, but you have not declared the namespace. Solution. Declare the namespace at the top of your feed....
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