-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Closed
Copy link
Description
Describe the bug
When processing the SVG above with SVGO, I get the following error:
TypeError: Cannot read properties of undefined (reading '0')
at reflectPoint (C:\Users\futur\AppData\Local\nvm\v23.9.0\node_modules\svgo\plugins\convertPathData.js:1160:37)
at C:\Users\futur\AppData\Local\nvm\v23.9.0\node_modules\svgo\plugins\convertPathData.js:802:43
at Array.filter (<anonymous>)
at filters (C:\Users\futur\AppData\Local\nvm\v23.9.0\node_modules\svgo\plugins\convertPathData.js:397:15)
at Object.enter (C:\Users\futur\AppData\Local\nvm\v23.9.0\node_modules\svgo\plugins\convertPathData.js:183:20)
at visit (C:\Users\futur\AppData\Local\nvm\v23.9.0\node_modules\svgo\lib\xast.js:52:30)
at visit (C:\Users\futur\AppData\Local\nvm\v23.9.0\node_modules\svgo\lib\xast.js:68:9)
at visit (C:\Users\futur\AppData\Local\nvm\v23.9.0\node_modules\svgo\lib\xast.js:61:7)
at invokePlugins (C:\Users\futur\AppData\Local\nvm\v23.9.0\node_modules\svgo\lib\svgo\plugins.js:25:7)
at Object.fn (C:\Users\futur\AppData\Local\nvm\v23.9.0\node_modules\svgo\lib\svgo\plugins.js:57:7)
To Reproduce
Steps to reproduce the behavior:
- Download this svg: FirefoxBW.zip
- Try to run SVGO on it.
svgo .\FirefoxBW.svg - See error
Expected behavior
I expected SVGO to gracefully recover from malformed input
Desktop (please complete the following information):
- SVGO Version 3.3.2
- NodeJs Version 23.9.0
- OS: Windows 10 Pro x64 22H2 (OS Build 19045.5555)
Additional context
There is another bug report here #1863 that references the same issue, however there was a fix merged: #2054.
I'm not sure if this SVG has the same problem or if it's something else causing SVGO to break.
leonardcser
Metadata
Metadata
Assignees
Labels
No labels