-
Notifications
You must be signed in to change notification settings - Fork 13
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
Error: 'Module did not self-register' using worker_threads in v12 #26
Comments
Seems relevant: Node docs for context-aware-addons: |
Thanks, I'll try to fix it |
Sadly but, not enough to just use Seems like I must migrate from Will update here. |
Any Updates on this? |
No, need to completely rewrite C++ part of the module. So actually it will be a new driver. Sadly but I don't have enough free time now to rewrite and test it. |
If
redis-fast-driver
isrequire
ed by both the 'main thread' and also a worker thread, the 2nd attempt fails and triggers an Error in the cjs loader.Reproducing code -
worker.js
:Output:
It seems to me there might be some additional work on the C++ side to have a module support being required twice. This is an issue even if the worker does not invoke the client on the codepath, just requires it.
The text was updated successfully, but these errors were encountered: