bubkoo / html-to-image

✂️ Generates an image from a DOM node using HTML5 canvas and SVG.
MIT License
5.39k stars 503 forks source link

Uncaught (in promise) error { target: img, isTrusted: true, srcElement: img, … } #467

Open patatetom opened 1 week ago

patatetom commented 1 week ago

Expected Behavior

download png image of provided element (body)

Current Behavior

I get this error but can't get more details from the developer console :

Uncaught (in promise) 
error { target: img, isTrusted: true, srcElement: img, eventPhase: 0, bubbles: false, cancelable: false, returnValue: true, defaultPrevented: false, composed: false, timeStamp: 5207770, … }

Steps To Reproduce

here is what is done :

Your Environment

vivcat[bot] commented 1 week ago

👋 @patatetom

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

asimdahall commented 1 week ago

I am facing the same issue right now

image

I cannot even know whats the error

ForeverSun commented 1 week ago

image

hungtcs commented 6 days ago

The same issues. I found that when I take a screenshot, it automatically downloads the favicon, but in the development environment the favicon does not exist and the server returns a 404 error, but if it is in the product environment, there is no error.

sherrera19 commented 6 days ago

Same error here using firefox. When using Edge the image gets downloaded with no issues. image

Too-ln commented 5 days ago

使用 Firefox 时出现同样的错误。使用 Edge 时,图像下载没有问题。 图像

Rojoniaina commented 1 day ago

Hello, is there anything new on this issue?