You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fails as it seems that Granim is looking for the class HTMLCanvasElement to be defined in the global namespace
ReferenceError: HTMLCanvasElement is not defined
at Granim.module.exports [as getElement] (/.../node_modules/granim/lib/getElement.js:4:25)
How do you get this to work? I tried refactoring that to not look for the HTMLCanvasElement, but there are references all over the codebase to things like "window" and other browser specific javascript functions/namespaces.
Is there any way to make this library work in a pure node js script?
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
I wanted to use this in a pure node js script, without involving a browser in any way.
I tried the following :
This fails as it seems that Granim is looking for the class HTMLCanvasElement to be defined in the global namespace
How do you get this to work? I tried refactoring that to not look for the HTMLCanvasElement, but there are references all over the codebase to things like "window" and other browser specific javascript functions/namespaces.
Is there any way to make this library work in a pure node js script?
Thanks.
The text was updated successfully, but these errors were encountered: