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

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

Open
andreip1 opened this issue Apr 23, 2021 · 0 comments
Open

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

andreip1 opened this issue Apr 23, 2021 · 0 comments

Comments

@andreip1
Copy link

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!

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