tsayen / dom-to-image

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

oops, something went wrong! ReferenceError: HTMLCanvasElement is not defined #216

Open muhammad-dev opened 6 years ago

muhammad-dev commented 6 years ago

hi , I'm getting this error . Anyone can help? oops, something went wrong! ReferenceError: HTMLCanvasElement is not defined

DeschampsManon commented 6 years ago

+1 on this issue, I have the same error for no reason... @muhammad-dev did you find something?

udewilde commented 6 years ago

Hi, are you by any chance trying to run this with Node in the backend ? I ran into this error trying exactly that, but when I moved this logic to my app's front end, the whole thing went smoothly. Hope it helps.

bhaireshm commented 3 years ago

Yes. even i tried in front end it works fine. But when run this in node we are getting this error.

Can anyone suggest alternate for dom-to-image??