JCMais / node-libcurl

libcurl bindings for Node.js
https://npmjs.org/package/node-libcurl
MIT License
660 stars 117 forks source link

Error: Module did not self-register #414

Closed titanism closed 1 month ago

titanism commented 1 month ago

This error only occurs in test runners via ava:

  Error: Module did not self-register: '/Users/user/Projects/web/node_modules/.pnpm/node-libcurl@4.0.0/node_modules/node-libcurl/lib/binding/node_libcurl.node'.

  › Object.<anonymous> (node_modules/.pnpm/node-libcurl@4.0.0/node_modules/node-libcurl/dist/Easy.js:5:18)
  › Object.<anonymous> (node_modules/.pnpm/node-libcurl@4.0.0/node_modules/node-libcurl/dist/Curl.js:17:16)
  › Object.<anonymous> (node_modules/.pnpm/node-libcurl@4.0.0/node_modules/node-libcurl/dist/index.js:15:14)
  › Object.<anonymous> (helpers/get-apn-certs.js:30:18)
  › Object.<anonymous> (helpers/send-apn.js:15:21)
  › Object.<anonymous> (helpers/imap/on-append.js:43:17)
  › Object.<anonymous> (helpers/imap/index.js:16:18)
  › Object.<anonymous> (helpers/imap.js:6:18)
  › Object.<anonymous> (helpers/index.js:55:14)
  › Object.<anonymous> (app/controllers/web/denylist.js:15:28)
  › Object.<anonymous> (app/controllers/web/index.js:38:18)
  › Object.<anonymous> (routes/web/admin.js:11:13)
  › Object.<anonymous> (routes/web/index.js:32:15)
  › Object.<anonymous> (routes/index.js:6:13)
  › Object.<anonymous> (config/api.js:10:16)
  › Object.<anonymous> (test/utils.js:22:19)
  › Object.<anonymous> (test/api/v1.js:21:15)
titanism commented 1 month ago

@JCMais can you please add worker thread support to this project? ava by default uses worker threads

titanism commented 1 month ago

Looks like a dup of #169

JCMais commented 1 month ago

@titanism yes, I believe so. I will close this one.

I will probably have some time to look into #155 later this month, possibly a requirement for #169, but I cannot give any estimation related to #169 itself after that work is done.

155 requires a substantial rewrite of the addon.