Automattic / node-canvas

Node canvas is a Cairo backed Canvas implementation for NodeJS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is the right canvas version for node 14.18.0

NoobCoderJJ opened this issue · comments

I had been facing this issue in heroku while hosting my discord bot
07258FD8-A4A7-45E6-A57D-F24AC0B8FC0C

I'm not sure how Heroku builds your dependencies, if it just copies them from your machine you need to deploy from the same environment as you are going to run in.

Since the top of the error message you provided is missing it's hard to tell exactly what the problem is...

@NoobCoderJJ, I think the correct native modules are picked up by canvas it self during npm i, depending on the underlying Node.js version. Node.js 14 and 16 are both running fine with canvas 2.8.0 here.

Is the solution here just to run a lesser version of canvas?

Edit: Sorry for the bump.