Automattic/node-canvas

Canvas.obj : error LNK2019: unresolved external symbol ... GetBackingStore

GitMurf opened this issue · 1 comments

Issue or Feature

When trying to use electron-rebuild (due to native node module) I get the following error which from my research seems to potentially be because of using nan instead of n-api: Canvas.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::shared_ptr<class v8::BackingStore> __cdecl v8::ArrayBuffer::GetBackingStore(void)" (__imp_?GetBackingStore@ArrayBuffer@v 8@@QEAA?AV?$shared_ptr@VBackingStore@v8@@@std@@XZ) referenced in function "void __cdecl parsePNGArgs(class v8::Local<class v8::Value>,struct PngClosure &)" (?parsePNGArgs@@YAXV?$Local@VValue@v8@@@v8@@AEAUPngClosure@@@Z) [...\app\node_modules\canvas\build\canvas.vcxproj]

image

Your Environment

  • Version of node-canvas (output of npm list canvas or yarn list canvas): v2.10.2
  • Environment (e.g. node 4.2.0 on Mac OS X 10.8): node 18.12.1 on Windows 11

This can now be closed with 🎉 #2235