Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when SVG has a style prop #37

Open
Anna-log7 opened this issue Jul 13, 2021 · 1 comment
Open

Error when SVG has a style prop #37

Anna-log7 opened this issue Jul 13, 2021 · 1 comment
Assignees
Labels

Comments

@Anna-log7
Copy link

Anna-log7 commented Jul 13, 2021

When an SVG has a style prop and raw is set, the library errors due to React trying to map style to the <svg>.
Adobe Illustrator produces SVG's with style tags set and it would be nice to handle these.

Here's an example: https://codesandbox.io/s/floral-sound-nn1vl?file=/src/App.js

@sairion I would be willing to open a PR for this issue if that's alright

@sairion sairion self-assigned this Aug 18, 2021
@sairion sairion added the bug label Aug 18, 2021
@joshferrell
Copy link

@sairion Was curious if you've gotten a chance to take a stab at this. I noticed that this seems to affect webpack 5 specifically. As after upgrading from 4 I noticed this bug with my app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants