How can I fix error in html2canvas library

I was using html2canvas to convert an image in base 64 and send it through PHP and thus store it as a Blob, at first it worked correctly and when I decoded it it showed me the image, but now it shows me this error in the library and I don’t know why it happens.

The error is the following:

documentClone.replaceChild(documentClone.adoptNode(cloner.documentElement), documentClone.documentElement);