Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

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

Open
icaraps opened this issue Aug 14, 2019 · 2 comments
Open

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

icaraps opened this issue Aug 14, 2019 · 2 comments
Labels
bug Something isn't working parcel

Comments

@icaraps
Copy link

icaraps commented Aug 14, 2019

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 moritzraho added the bug Something isn't working label Aug 14, 2019
@moritzraho
Copy link
Member

moritzraho commented Aug 14, 2019

thanks for the issue
might related to #24

@devongovett
Copy link
Member

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working parcel
Projects
None yet
Development

No branches or pull requests

3 participants