Skip to content
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

how can import iohook into my web-application to get keyboard or mouse click event globally? #411

Open
ZHENGYUN01 opened this issue Jul 29, 2022 · 1 comment

Comments

@ZHENGYUN01
Copy link

After a new development task assigned to me in which I need get keyboard and mouse click event globally and store it into a database, I search related work from google, then I found iohook may be suitable for me.

Unfortunately,

I install iohook package into my project, but I got some errors when i run the command rush build

error msg :

==[ FAILURE: 1 operation ]=====================================================

--[ FAILURE: demo ]---------------------------------[ 1 minute 56.3 seconds ]--

warn  - You have enabled experimental feature(s).
warn  - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use them at your own risk.

warn  - Compiled with warnings

../../node_modules/iohook/index.js
Critical dependency: the request of a dependency is an expression

Import trace for requested module:
../../libraries/keyboard/esm/keyboardListener.js
  ...3 lines omitted...

> Build error occurred
Error: Call retries were exceeded
    at ChildProcessWorker.initialize (E:\demo\common\temp\node_modules\.pnpm\[email protected][email protected][email protected]\node_modules\next\dist\compiled\jest-worker\index.js:1:12037)
    at ChildProcessWorker._onExit (E:\demo\common\temp\node_modules\.pnpm\[email protected][email protected][email protected]\node_modules\next\dist\compiled\jest-worker\index.js:1:12975)
    at ChildProcess.emit (node:events:527:28)
    at ChildProcess.emit (node:domain:475:12)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
  type: 'WorkerError'
}

anyone can help me out?

@ZHENGYUN01
Copy link
Author

Any related IT-ers here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant