Automattic / Automattic/node-canvas

node-gyp build on windows for electron 12/13 fails

Open
#1,868 10 comments 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

## Issue

When trying to build the native module for windows & ele3ctron 13.0.0 the node-gyp command fails with missing external symbol error.

## Steps to Reproduce

```
npm install canvas
cd ./node_ modules/canvas
node-gyp rebuild --target=13.0.0 --dist-url=https://electronjs.org/headers
```

Error:
```
Canvas.obj : error LNK2001: unresolved external symbol
""__declspec(dllimport) public: class std::shared_ptr __cdecl v8::ArrayBuffer::GetBackingStore(vo
id)" (__imp_?GetBackingStore@ArrayBuffer@v8@@QEAA?AV?$shared_
ptr@VBackingStore@v8@@@std@@XZ)".
```
## Your Environment
* Version of node-canvas: 2.6.1 / 2.8.0
* Environment: node 14.17.0 / 15.14.3 on windows 10

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.