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
{{ message }}
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
I am getting an uncaught error. This error is being thrown on the return of the inlineImages promise. I was wondering what it is trying to get the width of. I don't think I have any undefined heights or widths in my SVG.
The text was updated successfully, but these errors were encountered:
Strange. The only thing that block of code gets the width of is an Image object it creates (see line 134 here):
constcanvas=document.createElement('canvas');constimg=newImage();img.crossOrigin='anonymous';img.src=href;img.onerror=()=>reject(newError(`Could not load ${href}`));img.onload=()=>{canvas.width=img.width;canvas.height=img.height;canvas.getContext('2d').drawImage(img,0,0);image.setAttributeNS('http://www.w3.org/1999/xlink','href',canvas.toDataURL('image/png'));resolve(true);};
img shouldn't be undefined. Can you debug to make sure this is where the error is coming from or get any more details about how?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am getting an uncaught error. This error is being thrown on the return of the inlineImages promise. I was wondering what it is trying to get the width of. I don't think I have any undefined heights or widths in my SVG.
The text was updated successfully, but these errors were encountered: