Closed Grayseon closed 3 years ago
Make sure to follow usage guide. I suspect you don't have the proper config for iohook in your package.json
. If that's not the case, please share your entry in package.json
and a full stack trace of the error.
For my IOhook entry it's:
"iohook": { "targets": [ "node-72", "electron-89" ], "platforms": [ "win32", "darwin" ], "arches": [ "x64", "ia32" ] }
Can you provide a full stack trace? Also, are you using electron version 10?
Also I'm using Electron v13.1.6
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.
Thank you for your help!
(This is my first issue on GitHub, so sorry if I don't give enough detail)
When using IOhook with Electron, it gives me an error: iohook.node is not a valid Win32 application.
Expected Behavior
When running the application, it should output something when I press a key, or move the mouse.
Current Behavior
It errors when I only require IOhook in my index.js
Steps to Reproduce (for bugs)
Context
I'm making an application where you can share mice between Windows and Mac computers.
Your Environment
Things that I have tried
328
320
https://www.electronjs.org/docs/tutorial/using-native-node-modules#using-native-node-modules