Skip to content

SEA compiled on Windows doesn't work (the same situation as Issue #1104). Updated: and pkg too #1177

@ds315

Description

@ds315

Hi,

Single Executable Application compiled on Windows doesn't work like Issue #1104
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions