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

Unmatched selector: % when using CSS in an SVG #768

Open
mrtndwrd opened this issue Aug 30, 2022 · 2 comments
Open

Unmatched selector: % when using CSS in an SVG #768

mrtndwrd opened this issue Aug 30, 2022 · 2 comments

Comments

@mrtndwrd
Copy link

🐛 Bug Report

When I use an SVG with CSS in it, that contains keyframes with percentages, svgr fails to turn the SVG into a JSX element. The error message is Unmatched selector: %.

To Reproduce

Steps to reproduce the behavior:

Use the following SVG:

mascot

You can even reproduce this error in the web playground

Expected behavior

The SVG gets turned into a JSX element

Run npx envinfo --system --binaries --npmPackages @svgr/core,@svgr/cli,@svgr/webpack,@svgr/rollup --markdown --clipboard

Paste the results here:

## System:
 - OS: Linux 5.13 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish)
 - CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics
 - Memory: 12.92 GB / 27.27 GB
 - Container: Yes
 - Shell: 5.1.16 - /bin/bash
@stale
Copy link

stale bot commented Nov 13, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 13, 2022
@stale stale bot closed this as completed May 21, 2023
@gregberge gregberge reopened this May 22, 2023
@stale stale bot removed the wontfix label May 22, 2023
@SethFalco
Copy link

SethFalco commented Nov 9, 2023

This is actually an issue with SVGO, an upstream dependency of SVGR. Thanks for reporting it and providing an example. The fix for this has been released in SVGO v3.0.4.

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

No branches or pull requests

3 participants