Automattic / Automattic/node-canvas

require('canvas') gives an error that it cannot find the file.

Open
#2,011 1 comment 0 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

![image](https://user-images.githubusercontent.com/87280623/159569741-b41bd6e6-a8d0-4aec-a12d-1b100c4214a6.png)
when this code runs it gives an error that it cannot find the file
```js
const Canvas = require('canvas');
```

Replit
nodejs v16.13.2
canvas module version: ^2.9.1

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.