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.

Error: <path> attribute d: Expected arc flag ('0' or '1'), "M21 0H3a3 3 0 0-3 3 NaNvNaNa3 3…"

See original GitHub issue

For some reason this SVG:

<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"><path d="M21 0H3a3 3 0 00-3 3v18a3 3 0 003 3h18a3 3 0 003-3V3a3 3 0 00-3-3zm-.44 7.81l-10.5 10.5a1.5 1.5 0 01-2.12 0l-4.5-4.5a1.5 1.5 0 112.12-2.12L9 15.129l9.44-9.44a1.5 1.5 0 112.12 2.122z"/></svg>

is being parsed to

<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"><path d="M21 0H3a3 3 0 0-3 3 NaNvNaNa3 3 0 3 3 NaN NaNhNaNa3 3 0 3-3 NaN NaNvNaNa3 3 0 0-3 NaN NaNzm-.44 7.81l-10.5 10.5a1.5 1.5 0 1-2.12 0 NaNL1.32 NaNa1.5 1.5 0 112.12-2.12 NaN NaNlNaN NaN NaN NaNa1.5 1.5 0 112.12 2.122"></path></svg>

I’m importing and using like this:

import CheckboxIcon from "./CheckboxIcon.svg"

.babelrc:

{
  "presets": ["next/babel"],
  "plugins": ["inline-react-svg"]
}

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:6

github_iconTop GitHub Comments

6reactions
BrunoQuaresmacommented, Dec 22, 2020

I used the W3C validator and it looks good. Screen Shot 2020-12-21 at 22 57 28

Code:

<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"><path d="M21 0H3a3 3 0 00-3 3v18a3 3 0 003 3h18a3 3 0 003-3V3a3 3 0 00-3-3zm-.44 7.81l-10.5 10.5a1.5 1.5 0 01-2.12 0l-4.5-4.5a1.5 1.5 0 112.12-2.12L9 15.129l9.44-9.44a1.5 1.5 0 112.12 2.122z"/></svg>
4reactions
AhmedBHameedcommented, Feb 10, 2021

Any solution/workaround to this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: <path> attribute d: Expected arc flag ('0' or '1')
It does work when data changed to the another similar data, however when changes to the data as follows, transitions doesnot work and...
Read more >
Error while updating symbol from triangle to Circle
There is an unwanted delay in plotting the circle which replaces the triangle. Also I am getting this error: Error: <path> attribute d:...
Read more >
Error: <path> attribute d: Expected arc flag ('0' or '1')-d3.js
Solution in my case was to prevent drawing of the chart during the time the data was loading. Guessing the arcTween code doesn't...
Read more >
Error: <path> attribute d: Expected number, "M0,0C" - GSAP
Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes...
Read more >
I can use the display function - K3D-Tools/K3D-Jupyter
0. I have the same issue. Nothing happens, no error message. ... Error: <path> attribute d: Expected arc flag ('0' or '1'), "M21...
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