- Notifications
You must be signed in to change notification settings - Fork613
Open
Description
Hi,
Single Executable Application compiled on Windows doesn't work likeIssue #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 modulebcrypt works OK