Open icaraps opened 5 years ago
Write an action with a dependency on node-canvas to render a canvas.
See the example at https://github.com/Automattic/node-canvas
TypeError: bindings.CanvasRenderingContext2dInit is not a function
thanks for the issue might related to #24
I'm not sure how this could be a Parcel bug. node-canvas is a Node native module, which can't be bundled any bundler since it's binary.
Steps to Reproduce
Write an action with a dependency on node-canvas to render a canvas.
Sample Code that illustrates the problem
See the example at https://github.com/Automattic/node-canvas
Logs taken while reproducing problem