Canvas.obj : error LNK2019: unresolved external symbol ... GetBackingStore
GitMurf opened this issue · 1 comments
GitMurf commented
Issue or Feature
- If this is an issue with installation, I have read the troubleshooting guide.
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]
- Same issue as mentioned here by @omerts - #1944 (comment)
- @zbjornson requested it be turned into a new issue here: #1944 (comment)
- The following folks also commented there with same issue... cc @semireg @woestler and @linqian02
Your Environment
- Version of node-canvas (output of
npm list canvas
oryarn 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