Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node (running on Heroku) #124

Open
nodingneu opened this issue May 1, 2017 · 16 comments
Open

Node (running on Heroku) #124

nodingneu opened this issue May 1, 2017 · 16 comments

Comments

@nodingneu
Copy link

Says HTMLCanvasElement is not defined, I am trying to use JSDOM with this.

@ulisessp
Copy link

@theonlygusti

Facing the same issue here. I'm trying to include dom-to-image in the gulp task that compiles my template (handlebars/panini).

I'm also using jsdom (gulp-dom) and getting the same error. I guess that since there is no window there is also no HTMLCanvasElement.

Is there an easy way to make this work also server side?

@sustained
Copy link

Same issue. How do you make this work server-side...

@Sarfarazsajjad
Copy link

same issue

@satyendra-singh-talentica

Me too facing this issue

@ThePlenkov
Copy link

https://github.com/tmpvar/jsdom/wiki/Don't-stuff-jsdom-globals-onto-the-Node-global

@sidhuko
Copy link

sidhuko commented Dec 19, 2018

JSDOM have been clearer on Canvas Support:
https://github.com/jsdom/jsdom#canvas-support

Does this resolve the original issue and dom-to-image will work in jsdom?

@Songkeys
Copy link

Any progress so far?

@happystory
Copy link

Same issue, says "ReferenceError: SVGRectElement is not defined".

@651291702
Copy link

@theonlygusti I want to ask you whether solve this problem yet?

@hejackw
Copy link

hejackw commented Dec 11, 2019

HTMLCanvasElement未定义,我正在尝试与此一起使用JSDOM。
这个问题解决了吗

@hejackw
Copy link

hejackw commented Dec 11, 2019

@theonlygusti 这个问题解决了吗

@hejackw
Copy link

hejackw commented Dec 11, 2019

有人可以使用在node中了吗

@RaleighHan
Copy link

It seems that dom-to-image has to work within a browser, see this issue #34

@PolGuixe
Copy link

Does anyone has managed to make this running server side?

@KwanJunWen
Copy link

Can take a look at this answer on stackoverflow.

Instead of using JSdom and dom-to-image, you can make use of puppeteer which is a headless chrome nodejs API.

@H-goto16
Copy link

H-goto16 commented Jun 3, 2024

Does anyone have any updates on this issue? I am also facing the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests