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
the reason why using npm doesn't work is that the node_module 'canvas2image' only contains the 'var Canvas2image=function(){...' . you could replace 'module.exports=function(){...' instead of ''var Canvas2image=function(){...' in the node_module js file 'canvas2image.js', then using 'require()' does work.
After installing canvas2image npm. I am getting the following error:
TypeError: Canvas2Image.saveAsPNG is not a function
The text was updated successfully, but these errors were encountered: