-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iohook not found with Electron #245
Comments
iohook does not yet work with Electron 9 on Windows and 0.6.6 failed to achieve compatibility, see #241. On Windows for iohook to work currently you must use Electron <9. |
Still get the same issue after downgrading to Electron 8.3.4 despite someone saying that works in the post. |
For Electron 8.3.4 your package json should now have |
I am using node 12.13.0, iohook 0.6.6 and electron 8.3.4 on windows and doesn't work, I get the same error saying the module was not found even the module is there. I tried adding the targets to my package json and still doesn't work. Any idea why it doesn't work? |
Node.JS v11.10.1 is working with Electron and is not the issue. |
Unless there are features in v12 which iohook utilises which causes an error, however it seems unlikely. |
Just checked with node v11.10.1 and doesn't work as well :/ |
any update on this... i am facing the same issue |
What about Mac users? Right after I call require('iohook'), my electron process stops: Process exited with code 0 I'm using electron 9.1.2 |
I've reinstalled Microsoft Visual C++ Redistributable and reinstalled iohook with no avail. |
@marcelblum thank you very much....no docs where telling that stuff in that explicit form like you did. |
Any update? |
@PiggyPlex lot of updates to iohook since you originally posted, have you tried the latest version, which now works through latest Electron v11.x? |
@marcelblum I'm having the same issue... Error: Cannot find module 'D:\myprojects\full-projects\bindbox\node_modules\iohook\builds\electron-v85-win32-x64\build\Release\iohook.node' Any feedback on this issue? |
你解决了吗 |
No, i had to use an older version of electron and electron-rebuild package. |
Closing as irrelevant. |
Expected Behavior
iohook should work. Would like to use iohook in the front-end however cannot get it to work.
Current Behavior
Tried generating ABIs for both NodeJS and Electron and added sufficient parts to package.json. Have tried uninstalling, reinstalling, using https://www.electronjs.org/docs/tutorial/using-native-node-modules. Read multiple bug reports and articles and watched videos all to no avail. I believe it might be to do with Electron running a separate runtime version, however I've even tried editing the code to require the file by its absolute path and that still does not work.
Possible Solution
Steps to Reproduce (for bugs)
npm i iohook -s
)electron .
)Context
Trying to do keystroke and mouse detection for an on-screen counter in Electron.
Your Environment
The text was updated successfully, but these errors were encountered: