The following error is being triggered when a SVG has multiple values in a single property. In my case I have a SVG file which has two values for the transform property in the style:
ERROR in ./assets/icons/icon-chevron-double.svg
Module build failed (from ../node_modules/react-svg-loader/lib/loader.js):
TypeError: Cannot read property '0' of undefined
at multiplyTransformMatrices (/Users/***/Sites/later-life-care-calculator/node_modules/svgo/plugins/_transforms.js:302:10)
at Array.reduce (<anonymous>)
If I remove one of the properties, the SVG compiles successfully. Not sure this is a bug or I'm missing some configuration option but couldn't find anything.
Hello 👋🏽
The following error is being triggered when a SVG has multiple values in a single property. In my case I have a SVG file which has two values for the
transform
property in the style:Simplified code of SVG for demonstration:
Error in console:
If I remove one of the properties, the SVG compiles successfully. Not sure this is a bug or I'm missing some configuration option but couldn't find anything.