dom-to-image icon indicating copy to clipboard operation
dom-to-image copied to clipboard

use example demo throw the error

Open asiainfoliwei opened this issue 3 years ago • 3 comments

Use case: description, code

Error when i use lib to generator image use this code

domtoimage.toPng(document.body, { width: window.innerWidth, height: window.innerHeight, cacheBust: true }) .then(function (dataUrl) { var img = new Image(); img.src = dataUrl; document.body.appendChild(img); console.log('ok!'); }) .catch(function (error) { console.error('oops, something went wrong!', error); });

image

Browsers

Chrome 49+

asiainfoliwei avatar May 14 '21 08:05 asiainfoliwei

just got this error as well Screen Shot 2021-05-14 at 12 46 00 PM

thatONEjustin avatar May 14 '21 17:05 thatONEjustin

Screen Shot 2021-05-31 at 01 06 39

you can use promise all that work on my nuxtjs project

maxzycon avatar May 30 '21 17:05 maxzycon

Can confirm that this is still an issue. The error message isn't informative at all.

Qarun-Qadir-Bissoondial avatar Mar 02 '22 04:03 Qarun-Qadir-Bissoondial