lwahonen / node-ffi-napi

MIT License
14 stars 13 forks source link

electron 30+ rebuild fails #9

Open Galkon opened 2 months ago

Galkon commented 2 months ago

Anyone had any luck getting this working with electron 30+? Works with 29.

[error] Command failed: .\node_modules\.bin\electron-rebuild.cmd
- Searching dependency tree

Preprocessing assembly file ..\..\..\deps\libffi\src\x86\win64_intel.preasm
win64_intel.preasm
Building assembly file Release\obj\ffi\\win64_intel.asm
Assembling: Release\obj\ffi\win64_intel.asm
prep_cif.c
types.c
raw_api.c
java_raw_api.c
closures.c
ffiw64.c
win_delay_load_hook.cc
ffi.vcxproj -> C:\Builds\.tmp\electron\c519905b\node_modules\@lwahonen\ffi-napi\build\Release\\libffi.lib
nothing.c
win_delay_load_hook.cc
nothing.vcxproj -> C:\Builds\.tmp\electron\c519905b\node_modules\@lwahonen\ffi-napi\build\Release\\nothing.lib
ffi.cc
C:\Builds\.tmp\electron\c519905b\node_modules\get-uv-event-loop-napi-h\include\get-uv-event-loop-napi.h(26,30): error C2440: '=': cannot convert from 'napi_status (__cdecl *)(node_api_nogc_env,uv_loop_s **)' to 'get_uv_event_loop_fn' [C:\Builds\.tmp\electron\c519905b\node_modules\@lwahonen\ffi-napi\build\ffi_bindings.vcxproj]
Error: `C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
at ChildProcess.onExit (C:\Builds\.tmp\electron\c519905b\node_modules\node-gyp\lib\build.js:203:23)
at ChildProcess.emit (node:events:514:28)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)

× Rebuild Failed