dom-to-image
dom-to-image copied to clipboard
use example demo throw the error
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); });
Browsers
Chrome 49+
just got this error as well

you can use promise all that work on my nuxtjs project
Can confirm that this is still an issue. The error message isn't informative at all.