Giter Club home page Giter Club logo

Comments (6)

BrunoQuaresma avatar BrunoQuaresma commented on June 2, 2024 6

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>

from babel-plugin-inline-react-svg.

AhmedBHameed avatar AhmedBHameed commented on June 2, 2024 4

Any solution/workaround to this issue?

from babel-plugin-inline-react-svg.

ljharb avatar ljharb commented on June 2, 2024

that's a lot of NaNs in the d attribute. is there any chance the original svg isn't well-formed?

from babel-plugin-inline-react-svg.

BrunoQuaresma avatar BrunoQuaresma commented on June 2, 2024

@ljharb If you open the original svg that I posted previously in the browser, it works. I tried with other svgs as well but no success.

from babel-plugin-inline-react-svg.

ljharb avatar ljharb commented on June 2, 2024

Browsers are very forgiving; it’s possible an svg would work, but be invalid, just like html itself.

from babel-plugin-inline-react-svg.

frendly avatar frendly commented on June 2, 2024

0.7.2 is quite outdated. Update to v1.1 at least
svg/svgo#1185

and

See #35 and #34; svgo v1+ doesn't offer a synchronous mechanism, so we can't use it.

Additionally, every security issue you're referencing is a false positive that does not apply to this repo.
#66

from babel-plugin-inline-react-svg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.