You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In version 3.2.0 svgo fails on certain files with the following error when using the convertPathData plugin. The issue does not occur in v3.1.0 and earlier.
/tmp/node_modules/svgo/plugins/convertPathData.js:1160
return [2 * base[0] - controlPoint[0], 2 * base[1] - controlPoint[1]];
^
TypeError: Cannot read properties of undefined (reading '0')
at reflectPoint (/tmp/node_modules/svgo/plugins/convertPathData.js:1160:37)
at /tmp/node_modules/svgo/plugins/convertPathData.js:802:43
at Array.filter (<anonymous>)
at filters (/tmp/node_modules/svgo/plugins/convertPathData.js:397:15)
at Object.enter (/tmp/node_modules/svgo/plugins/convertPathData.js:183:20)
at visit (/tmp/node_modules/svgo/lib/xast.js:52:30)
at visit (/tmp/node_modules/svgo/lib/xast.js:68:9)
at visit (/tmp/node_modules/svgo/lib/xast.js:68:9)
at visit (/tmp/node_modules/svgo/lib/xast.js:68:9)
at visit (/tmp/node_modules/svgo/lib/xast.js:68:9)
Node.js v20.6.1
Describe the bug
In version 3.2.0
svgo
fails on certain files with the following error when using theconvertPathData
plugin. The issue does not occur in v3.1.0 and earlier.An example file that triggers the error - the file validates with no issues.
To Reproduce
Run the following with the above file as input:
Expected behavior
No errors.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: