durs / node-activex

Node.JS Implementaion of ActiveXObject
MIT License
329 stars 62 forks source link

Calling an API that is requiring winax (Junior issue) #93

Open andreip1 opened 3 years ago

andreip1 commented 3 years ago

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!