Automattic / Automattic/node-canvas

canvas.node is not a valid Win32 application Azure

Open
#1,812 8 comments 3 reactions 0 assignees View on GitHub
Installation help
Dominant language
JavaScript
Stars
10.7k
Forks
1.2k
Avg merge
4d 8h
Merged PRs (30d)
1

Description

Hello, I am trying to build an Azure Function app which utilizes canvas. When I run the project and test it locally, everything works fine. After deploying the code to Azure, I have errors. The build and deployment pass without issues, but as soon as I trigger the function I get `canvas.node is not a valid Win32 application` error.

I tried removing node_modules and running npm install, that's when I got this error:
![image](https://user-images.githubusercontent.com/48063901/119274636-3a173f00-bc11-11eb-8668-19623bff426d.png)

## Your Environment
"canvas": "^2.8.0",
Node 12

I saw from previous issues that this might have something to do with Win32 and 64 bit, but from what I know Azure uses 64 bit machines so I'm not sure if that affects it in any way.. Thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.