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

This seems to break for worker threads #98

Closed
d3lm opened this issue Sep 24, 2020 · 1 comment · Fixed by #109
Closed

This seems to break for worker threads #98

d3lm opened this issue Sep 24, 2020 · 1 comment · Fixed by #109

Comments

@d3lm
Copy link

d3lm commented Sep 24, 2020

I am running into an issue where loading fs-ext in a worker thread gives me Error: Module did not self-register as well as

Emitted 'error' event on Worker instance at:
    at Worker.[kOnErrorMessage] (internal/worker.js:232:10)
    at Worker.[kOnMessage] (internal/worker.js:242:37)
    at MessagePort.<anonymous> (internal/worker.js:163:57)
    at MessagePort.emit (events.js:315:20)
    at MessagePort.onmessage (internal/worker/io.js:78:8)
    at MessagePort.exports.emitMessage (internal/per_context/messageport.js:11:10)

Is it true that this package is not compatible with worker threads? If yes, how can this be fixed?

@WillAvudim
Copy link

Ran into exactly the same issue: Works fine from the primary thread but crashes with "Error: Module did not self-register" in the worker thread. Node v20.9.0, everything is latest. I even force-reset the NPM cache to pull all the latest.

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

Successfully merging a pull request may close this issue.

2 participants