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
I'm porting a codebase from browser to Node.js and I'm facing the requirement of synchronous XHR requests in Workers, which sync-request-curl seems to solve.
The problem is that I need to load this package in multiple workers, which currently crashes:
ERR Error: Module did not self-register: '/home/lubos/dedicaid/DicomCdssHandler/node_modules/easy-libcurl/lib/binding/node_libcurl.node'.
at Object..node (node:internal/modules/cjs/loader:1544:18)
at Module.load (node:internal/modules/cjs/loader:1249:32)
at Function._load (node:internal/modules/cjs/loader:1065:12)
at Module.require (node:internal/modules/cjs/loader:1271:19)
at require (node:internal/modules/helpers:123:16)
at Object.<anonymous> (/home/lubos/dedicaid/DicomCdssHandler/node_modules/easy-libcurl/dist/Easy.js:5:18)
at Module._compile (node:internal/modules/cjs/loader:1434:14)
at Object..js (node:internal/modules/cjs/loader:1518:10)
at Module.load (node:internal/modules/cjs/loader:1249:32)
at Function._load (node:internal/modules/cjs/loader:1065:12) {
code: 'ERR_DLOPEN_FAILED'
}
Hello,
I'm porting a codebase from browser to Node.js and I'm facing the requirement of synchronous XHR requests in Workers, which sync-request-curl seems to solve.
The problem is that I need to load this package in multiple workers, which currently crashes:
It seems that the problem is that native modules need to be made context aware. I think the fix could be as simple as replacing NODE_MODULE with NAN_MODULE_WORKER_ENABLED.
The text was updated successfully, but these errors were encountered: