You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed the bug in winctl and filed a pull request at davenonymous/winctl#8 👍 All good!
Edit
Checking out weedz/nan@a679b69 seems to get the job done! (It's not yet merged into nan, though)
Now I get "CreationContext" is not a member of "v8::Object", which seems to be an unrelated issue to electron v20 and newer according to this comment: WiseLibs/better-sqlite3#858 (comment)
Original Post
I am running into that same issue. Trying to build an electron app created with electron-forge 6.0.0-beta.65 and a native module. Consider this example:
run npm i https://github.com/thraaawn/winctl
run npm start
get
Preparing native dependencies: 0 / 1
C:\Users\user\.electron-gyp\20.1.4\include\node\v8-isolate.h(292,5): warning C4996: 'v8::LegacyOOMErrorCallback': Use
OOMErrorCallback (https://crbug.com/1323177) [C:\[...]\node_modules\winctl\build\w
inctl.vcxproj]
C:\[...]\node_modules\nan\nan_callbacks.h(55,23): error C2039: "AccessorSignature"
is not a member of "v8". [C:\[...]\node_modules\winctl\build\winctl.vcxproj]`
I tried to manually upgrade electron-rebuild to v3.2.9 and nan to v2.16.0.
Cloning the repo of winctl to a separate directory and starting it without electron works perfectly fine. Local node version is v16.17.0.
Preflight Checklist
Electron Version
20.0.0-alpha.1
What operating system are you using?
Windows
Operating System Version
Windows 10
What arch are you using?
x64
Last Known Working Electron version
19.0.7
Expected Behavior
Native modules using the nan API should build correctly on x64
Actual Behavior
Native modules using the nan API crash on x64 with a missing include for pointer compression
Testcase Gist URL
https://gist.github.com/VerteDinde/90c7f4555c0f7ba5fd374fed3f20cbb0
Additional Information
More information in these two PRs:
Two tasks for us to complete before we release v20 as a stable release:
electron-rebuild
verison 3.2.8The text was updated successfully, but these errors were encountered: