-
Notifications
You must be signed in to change notification settings - Fork 50
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
Module did not self-register #162
Comments
I've managed to workaround and it is simply exclusion of |
|
@mscdex I've also got a case where I need to use Would there be any interest in a PR for that or would it be too drastic of a change? |
I'm not comfortable using node-api yet. AFAIK nan has a way to mark a module as worker-friendly, but of course that requires some code changes because you need to make sure that (per-worker/isolate/whatever) resources are properly cleaned up whereas currently there are some globals used. |
Hi @xobotyi, could you please elaborate a bit on this workaround? How did you exclude the package from the worker thread? |
@tnabil just rethinked the flow and been able to use mmmagic in main thread |
When trying to use
mmagic
within worker threads im receivenig below error:node:
v16.13.2
os: Windows 11
While being used within main thread - everything works just fine.
The text was updated successfully, but these errors were encountered: