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 in convertEllipseToCircle #1264

Closed
darsain opened this issue Jun 27, 2020 · 1 comment
Closed

Error in convertEllipseToCircle #1264

darsain opened this issue Jun 27, 2020 · 1 comment

Comments

@darsain
Copy link

darsain commented Jun 27, 2020

I'm getting Cannot read property 'value' of undefined error when my gulp-svgmin plugin is processing this svg file.

The error comes from svgo/plugins/convertEllipseToCircle.js:21:31, which is this line here:

var rx = item.attr('rx').value || 0;

The only ellipse tag in the file is this one:

<ellipse
   style="opacity:1;fill:#4f4e57;fill-opacity:1;stroke:none;stroke-width:70;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
   id="path5227"
   cy="500"
   cx="500"
   r="100" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants