Skip to content

SEA with Native module 'uWebSockets' compiled on Windows - doesn't work, on Linux - OK #123

@ds315

Description

@ds315

Hi,

It's crashes on dlopen()

NodeJS 24.2.0
uWebSockets 20.52.0

server.js:

const { dlopen } = require('node:process');
const lib = {exports: {}};

console.log('loading uws ...');
dlopen(lib, 'node_modules/uWebSockets.js/uws_win32_x64_137.node');
console.log('uws loaded');

lib.exports.App()
.get('/*', res => res.end('Hi'))
.listen(3000, token => console.log(token ? 'Listening' : 'Failed to listen', 'to port 3000'));

node server.js - work OK

after building - doesn't start, only 'loading uws ...'

sea.json:

{
	"main": "server.js",
	"output": "sea.blob",
	"assets": {
		"uws_win32_x64_137.node": "node_modules/uWebSockets.js/uws_win32_x64_137.node"
	}
}

It would be good to uWS can work with SEA on Windows

PS: native module bcrypt - works OK on Windows and Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions