adobe / adobeio-cna-starter-project

DEPRECATED - Please use https://github.com/adobe/aio-cli to manage your future apps!
https://adobe.io
Apache License 2.0
10 stars 8 forks source link

Dependency node-canvas used in actions has a compilation issue #32

Open icaraps opened 5 years ago

icaraps commented 5 years ago

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

TypeError: bindings.CanvasRenderingContext2dInit is not a function
moritzraho commented 5 years ago

thanks for the issue might related to #24

devongovett commented 5 years ago

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.