I want to create a canvas component server side then will convert that in image and I will send it to client side. I want to perform this in Node.js
Facing problem in creating canvas component server side.
node.js does not have any kind of DOM by default and can't operate on elements such as
canvas. But you can look here: https://github.com/Automattic/node-canvas
That package allows you to manipulate a canvas-like object server-side.