NodeRT package(s) are very old. They were made in the Win8 UWP era.
They require the /ZW flag (C++/CX | Windows Runtime Compilation).
Node v22 started to use /std:c++20.
That's an issue because it's incompatible with /ZW (C++/CX).
command line error D8016: '/ZW' and '/std:c++20' command-line options are incompatible
And this is unlikely to change because Microsoft has abandoned UWP/WinRT and recommends to move to C++/WinRT from C++/CX.
Altho forcing /std:c++17 worked before when building native addons for Node v22; Electron v32 requires it.
...\prebuildify\electron\32.0.0\include\node\v8config.h(13,1): error C1189: #error: "C++20 or later required."
[...\node-nodeRT\node_modules\@nodert-win10-rs4\windows.devices.lights\build\binding.vcxproj]
(compiling source file '../_nodert_generated.cpp')
NodeRT package(s) are very old. They were made in the Win8 UWP era.
They require the
/ZWflag (C++/CX | Windows Runtime Compilation).Node v22 started to use
/std:c++20.That's an issue because it's incompatible with
/ZW(C++/CX).And this is unlikely to change because Microsoft has abandoned UWP/WinRT and recommends to move to C++/WinRT from C++/CX.
Altho forcing
/std:c++17worked before when building native addons for Node v22; Electron v32 requires it.