tsayen / dom-to-image

Generates an image from a DOM node using HTML5 canvas
Other
10.28k stars 1.68k forks source link

Uncaught (in promise) TypeError: node.cloneNode is not a function at makeNodeCopy (dom-to-image.js:191) #233

Open lo6041 opened 6 years ago

lo6041 commented 6 years ago

Uncaught (in promise) TypeError: node.cloneNode is not a function at makeNodeCopy (dom-to-image.js:191)

Use case: description, code

jsfiddle

Expected behavior

Actual behavior (stack traces, console logs etc)

Library version

Browsers

teonapster commented 5 years ago

facing the same issue. Any further feedback ?

chengqinngling commented 5 years ago

获取id 的时候去除$

IAmRC1 commented 4 years ago

using this code

     domtoimage
      .toPng(node, {
        quality: 1.0,
      })
      .then(function (dataUrl) {
        var img = new window.Image();
        img.src = dataUrl;
        document.getElementsByClassName('wrapper').appendChild(img);
      })
      .catch(function (error) {
        console.error('oops, something went wrong!', error);
      });

facing same error as above

amikmandal commented 4 years ago

Facing the same issue

PerfKeeper commented 3 years ago

Hello, Here is the same error displayed in google chrome devtools console :

image

It seems that is originating from this file :

image

My code, calling dom-to-image module :

image

Waiting for your analysis...

Best regards

poconri commented 1 year ago

It just happens to me as well. So we have an update?

surbhi-software commented 5 months ago

Hello,

Anybody able to find any solution to this problem?