I also tried another minimal example using NAN and ran `nw-gyp rebuild --target=0.79.1 --arch=x64`, but it fails:
gyp ERR! find VS running in VS Command Prompt, installation path is:
gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
gyp ERR! find VS - will only use this version
gyp ERR! find VS checking VS2022 (17.7.34024.191) found at:
gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
gyp ERR! find VS - found "Visual Studio C++ core features"
gyp ERR! find VS - found VC++ toolset: v143
gyp ERR! find VS - missing any Windows SDK
gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
...
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack TypeError: Cannot read properties of undefined (reading 'versionYear')
gyp ERR! stack at createConfigFile (C:\Users\ashle\AppData\Roaming\npm\node_modules\nw-gyp\lib\configure.js:175:57)
gyp ERR! stack at C:\Users\ashle\AppData\Roaming\npm\node_modules\nw-gyp\lib\configure.js:99:13
gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
It says "missing any Windows SDK", but I do have the Windows SDK installed at C:\Program Files (x86)\Windows Kits\10.
Is it not supported, or perhaps nw-gyp is out of date?
I'd really appreciate any working example - so far I've been unable to get even a "hello world" native node addon working in NW.js.
Ashley