iohook
iohook copied to clipboard
iohook.node is not a valid Win32 application.
Current Behavior
When you start the program
App threw an error during load
Error: C:\iohook-test\node_modules\iohook\builds\electron-v89-win32-x64\build\Release\iohook.node is not a valid Win32 application.
C:\iohook-test\node_modules\iohook\builds\electron-v89-win32-x64\build\Release\iohook.node
at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1846)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1138:18)
at Object.func [as .node] (electron/js2c/asar_bundle.js:5:1846)
at Module.load (internal/modules/cjs/loader.js:935:32)
at Module._load (internal/modules/cjs/loader.js:776:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
at Module.require (internal/modules/cjs/loader.js:959:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (C:\iohook-test\node_modules\iohook\index.js:24:21)
at Module._compile (internal/modules/cjs/loader.js:1078:30)
It will be displayed.
The package.json contains the correct Node/Electron ABI version
Steps to Reproduce (for bugs)
- Clone https://github.com/Kazuy1/iohook-test
- Run script/cleanup (run in the script folder)
- Start electron (electron main.js)
Context
The source code uses the same as the sample code of iohook
Your Environment
- Microsoft Windows 10 Pro v10.0.19042
- IOHook Version: 0.9.3
- Environment name and version (e.g. Chrome 39, node.js 5.4, electron 11.2): node.js 14.17.3, electron 13.1.9
- Operating System and version (desktop or mobile):desktop
- Optional Link to your project: https://github.com/Kazuy1/iohook-test
PS: Running abi.js will change the iohook abi in package.json to the Node/electron abi
Same issue - any update? Exact same version electron-v89-win32-x64
.
Many similar closed issues: https://github.com/wilix-team/iohook/issues?q=is%3Aissue+sort%3Aupdated-desc+not+a+valid+win32+application+is%3Aclosed
@ash0x0 What is the latest Electron version supported?
https://github.com/wilix-team/iohook/issues/345#issuecomment-877463548 Electron 13 isn't supported yet because it has new requirements for native modules. That's why it's not working for you. When this is fixed I'll update here but for now you can use electron 12 or use an alternative library for your os.
Any update on this ? I am using electron : "15.3.0" abi 98 Do we have to manually do the build for win32?
Still no updates in a month. I want to ditch iohook entirely, but there's nothing better to use.