-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Comments
@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? |
Same issue. How do you make this work server-side... |
same issue |
Me too facing this issue |
JSDOM have been clearer on Canvas Support: Does this resolve the original issue and dom-to-image will work in jsdom? |
Any progress so far? |
Same issue, says "ReferenceError: SVGRectElement is not defined". |
@theonlygusti I want to ask you whether solve this problem yet? |
|
@theonlygusti 这个问题解决了吗 |
有人可以使用在node中了吗 |
It seems that dom-to-image has to work within a browser, see this issue #34 |
Does anyone has managed to make this running server side? |
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. |
Does anyone have any updates on this issue? I am also facing the same issue. |
Says
HTMLCanvasElement
is not defined, I am trying to use JSDOM with this.The text was updated successfully, but these errors were encountered: