node-activex icon indicating copy to clipboard operation
node-activex copied to clipboard

Calling an API that is requiring winax (Junior issue)

Open andreip1 opened this issue 3 years ago • 0 comments

Hello @durs , First of all I would like to thank you for creating this package.

Now the issue. I am a junior so I apologize if my question is silly, but I am facing a situation where I would need to make an API call that requires winax from a worker thread in Node and I get the following error that happens when I require winax. My worker.js code

const { workerData, parentPort } = require("worker_threads") const winax = require("winax"); let message = "in the worker" parentPort.postMessage(message)

Error:

UnhandledPromiseRejectionWarning: Error: Module did not self-register.

I don't know if this is actually an issue, but I would appreciate any feedback that you'd be able to offer on my approach.

Thank you!

andreip1 avatar Apr 23 '21 16:04 andreip1