Open flohall opened 2 years ago
+1
First of all, thank the team for their efforts. I sincerely hope to release a version that supports Apple M1🙏
I'm having the same issue with node-canvas 2.9.0 on a regular Macbook. Node v14.17.0
.
Facing the same issue on Mac, Node 14
having the same issue on a lambda layer
Issue or Feature
We are developing a konva + node-canvas AWS Lambda serverless implementation. I am the only member in the team that switched some days ago to a new MacBook with Apple M1 Pro. Our application renders a video using konva + node-canvas and streams raw images to ffmpeg. The whole thing worked nicely inside the AWS Lambda docker container and locally on an Intel MacBook. On my new laptop I couldn't execute the code locally with canvas 2.8.0 - thats why I switched to github:Automattic/node-canvas#198080580a0e3938c48daae357b88a1638a9ddcd and now the code works on my new MacBook with Apple Silicon (M1 Pro) as well. See my answer on stack overflow here: https://stackoverflow.com/questions/67031187/error-node-canvas-was-built-without-jpeg-support/70064802#70064802 But with this version I cannot execute the code inside the docker anymore. So something between canvas 2.8.0 release and the current master breaks execution in Amazon Linux docker. The following issue occurs at runtime (no issues while building / installing canvas):
Steps to Reproduce
not sure exactly what causes the issue, but here some canvas functions we use:
dockerfile:
Your Environment
ENV 1 (on ARM MAC) (works)
ENV 1 (on ARM MAC) (doesn't work)
ENV 2 (on AMD64 docker) (doesn't work):
ENV 2 (on AMD64 docker) (works):