Closed eballeste closed 4 years ago
traced this error to this line
svgo.optimize needs a second info parameter
svgo.optimize
info
changing this line to: return svgo.optimize(buffer, {}).then(result => Buffer.from(result.data));
return svgo.optimize(buffer, {}).then(result => Buffer.from(result.data));
fixes the issue for me
https://github.com/svg/svgo/pull/1175
fixed with svgo:1.3.2
traced this error to this line
svgo.optimize
needs a secondinfo
parameterchanging this line to:
return svgo.optimize(buffer, {}).then(result => Buffer.from(result.data));
fixes the issue for me