You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const{ Worker, isMainThread }=require('worker_threads')if(isMainThread){// Require in the top-level context works fine.require('node-expat')worker=newWorker(__filename)}else{// Require in the context of a worker thread throws an exception://// Error: Module did not self-register: ...//require('node-expat')}
Hello,
I encountered an issue trying to load
node-expat
in the context of a worker thread, see the minimal reproduction below:This may be an example of how to fix it schroffl/node-lzo#11
Does this module aim to be usable in the context of a worker threads?
The text was updated successfully, but these errors were encountered: