Skip to content

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

Open
@derpoho

Description

@derpoho

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<class 
v8::BackingStore> __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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions