Hey. I work on Rtact JS. I connected the canvg library for IE 11 support. The code looks like this:
import Canvg from 'canvg';
svgAsPngUri (svg, {scale: 0.5, canvg: Canvg.fromString}). then (uri => {
iconImage.src = uri;
});
As a result, I get a blank picture. Without library Canvg, it works just fine.
Hey. I work on Rtact JS. I connected the canvg library for IE 11 support. The code looks like this: import Canvg from 'canvg';
svgAsPngUri (svg, {scale: 0.5, canvg: Canvg.fromString}). then (uri => { iconImage.src = uri; }); As a result, I get a blank picture. Without library Canvg, it works just fine.