Automattic / Automattic/node-canvas

Module did not self-register: '...\node_modules\canvas\build\Release\canvas.node'.

Open
#1,718 5 comments 20 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

I have a Typescript React application created with CreateReactApp, using react-scripts (3.4.4)

I'm running the latest stable version of nodejs (v14.15.1) and npm (6.14.9)

I use JEST as a test runner.

On one Windows machine, I keep getting the `Module did not self-register` error when running JEST. I did get it working on another PC...

I tried deleting the `node_modules`, clearing the npm cache, rebuilding, reinstalling the canvas package, nothing works.

So I'm out of options. I'm going to try to find out why it does work on the other PC.

But maybe someone already have some hints for me?

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.