-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Description
Using a supported version?
- I have searched searched open and closed issues for duplicates.
- I am using Signal-Desktop as provided by the Signal team, not a 3rd-party package.
Overall summary
Signal Desktop fails to launch properly due to a preload script error.
The application throws a SyntaxError related to the usage of the import statement outside a module context, specifically in @signalapp/libsignal-client.
Steps to reproduce
- Install Signal Desktop using the official installer on Windows.
- Launch the application.
- Observe that Signal does not load properly and shows errors in the developer console.
Expected result
Signal Desktop should start without any JavaScript errors and load the user interface as expected.
Actual result
The following error appears in the developer console and prevents the app from launching:
preload error! <redacted-path>/resources/app.asar/node_modules/@signalapp/libsignal-client/dist/index.js:5
import { Buffer } from 'node:buffer';
^^^^^^
SyntaxError: Failed to construct 'ContextifyScript': Cannot use import statement outside a module
at makeContextifyScript (node:internal/vm:185:14)
at wrapSafe (node:internal/modules/cjs/loader:1609:20)
at Module._compile (node:internal/modules/cjs/loader:1687:20)
...
background.html:136 Uncaught TypeError: window.startApp is not a function
and main.log shows
{"level":30,"time":"2025-10-19T07:12:51.859Z","msg":"[startup_config] Set Windows Application User Model ID (AUMID) {\"AUMID\":\"org.whispersystems.signal-desktop\"}"}
{"level":30,"time":"2025-10-19T07:12:51.891Z","msg":"[base_config] config/get: Successfully read user config file"}
{"level":30,"time":"2025-10-19T07:12:52.021Z","msg":"[base_config] config/get: Successfully read ephemeral config file"}
{"level":30,"time":"2025-10-19T07:12:52.146Z","msg":"[app/main] making app single instance"}
{"level":30,"time":"2025-10-19T07:12:52.519Z","msg":"[app/main] got fast localeOverride setting null"}
{"level":30,"time":"2025-10-19T07:12:52.520Z","msg":"[app/main] app.ready: hour cycle preference: UnknownPreference"}
...
{"level":30,"time":"2025-10-19T07:12:52.710Z","msg":"[spell_check] spellcheck: setting languages to: [\"ko\"]"}
{"level":40,"time":"2025-10-19T07:12:53.193Z","msg":"[app/main] MainSQL: sqlite(SQLITE_NOTICE_RECOVER_WAL): recovered 5 frames from WAL file [REDACTED]\\sql\\db.sqlite-wal"}
{"level":30,"time":"2025-10-19T07:12:53.201Z","msg":"[app/main] MainSQL: updateSchema:\n Current user_version: 1480;\n Most recent db schema: 1480;\n SQLite version: 3.50.4;\n SQLCipher version: 4.10.0 community;\n (deprecated) schema_version: 567;\n"}
{"level":30,"time":"2025-10-19T07:12:54.329Z","msg":"[app/main] got fast theme-setting value light"}
{"level":50,"time":"2025-10-19T07:12:54.469Z","msg":"[app/main] Preload error in [REDACTED]\\preload.wrapper.js: Failed to construct 'ContextifyScript': Cannot use import statement outside a module"}
{"level":30,"time":"2025-10-19T07:12:54.583Z","msg":"[app/main] main window is ready-to-show"}
{"level":30,"time":"2025-10-19T07:12:54.603Z","msg":"[SystemTrayService] System tray service: created"}
{"level":30,"time":"2025-10-19T07:12:54.603Z","msg":"[SystemTrayService] System tray service: updating main window. Previously, there was not a window, and now there is"}
{"level":30,"time":"2025-10-19T07:12:54.603Z","msg":"[SystemTrayService] System tray service: rendering no tray"}
{"level":30,"time":"2025-10-19T07:12:54.603Z","msg":"[SystemTrayService] System tray service: enabling"}
{"level":30,"time":"2025-10-19T07:12:54.604Z","msg":"[SystemTrayService] System tray service: rendering the tray"}
{"level":30,"time":"2025-10-19T07:12:54.604Z","msg":"[SystemTrayService] System tray service: creating the tray"}
Screenshots
No response
Signal version
7.75.1 Production
Operating system
Windows 11 25H2
Version of Signal on your phone
No response
Link to debug log
No response