iohook icon indicating copy to clipboard operation
iohook copied to clipboard

Error when importing into angular component.

Open jeffery30162 opened this issue 4 years ago • 0 comments
trafficstars

I have installed the newest version 0.9.3, If I include iohook in main.ts all is working fine. But when importing into an angular component, I am getting a console error.

Expected Behavior

Importing into angular component should work as intended: const ioHook = require('iohook');

Current Behavior

Causes console error when running the application in both electron and browser

image

Possible Solution

N/A

Steps to Reproduce (for bugs)

Install iohook using npm, require iohook in an angular component.

Context

Global keypress

Your Environment

Electron 12.X.X Node 15.X.X

  • IOHook Version: 0.9.3
  • Operating System and version (desktop or mobile): desktop debian popos

jeffery30162 avatar Aug 20 '21 00:08 jeffery30162