uNetworking/uWebSockets.js

Error: Module did not self-register (Node 21.5.0 and uWS 20.35.0)

aleksraiden opened this issue · 4 comments

Hi all, try to use both latest version of NodeJS and uWS, But we have an error:
Error: Module did not self-register: '/builds/devs/uws/uws_linux_x64_120.node'. at /builds/devs/uws/uws.js:22:9 at Object.<anonymous> at Module._compile (node:internal/modules/cjs/loader:13) at Module._extensions..js (node:internal/modules/cjs/loader:1434:10) at Module.load (node:internal/modules/cjs/loader:1206:32) at Module._load (node:internal/modules/cjs/loader:1022:12) at Module.require (node:internal/modules/cjs/loader:1234:19) at require (node:internal/modules/helpers:1[76]) at Object.<anonymous> (/builds/devs/adminApiGateway.js:8:13) at Module._compile (node:internal/modules/cjs/loader:1375:14) Node.js v21.5.0
Of course, all binaries available, we check signature - in latest nodejs still usage version 120.
In pervious, 21.4.0 nodejs - all OK.

zdm commented

Same for node v20, bof linux onlty.

It does look like the problem is 20.35.0 release specific, setting 20.34.0 explicitly sorted the issue in our case...

CI is building a fix that works, will release when done