You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Omi Desktop for Windows crashes on launch after restart attempt with "Cannot find module 'ms'" error #10738
I reproduced the startup failure from the packaged Windows artifact: electron-builder pruned ms from the Sentry/debug runtime chain, so app.asar/out/main/index.js failed before startup. #10823 fixes that by declaring ms as a direct runtime dependency and adds a final-artifact probe to both unsigned and signed release paths; the rebuilt ASAR and isolated-profile Windows launch passed, and current CI is green. The fix is still awaiting human release-path review and has not merged yet.
This same Cannot find module 'ms' startup crash also happens after using the in-app updater flow on Windows:
Settings > About > Restart to install latest update
Observed behavior:
Click Restart to install latest update
Omi closes and appears to update/install a new version
When opening Omi after the update, Windows shows:
A JavaScript error occurred in the main process
Error: Cannot find module 'ms'
So this issue is not limited to restarting after a capture problem. It can also be triggered immediately after the built-in Windows update flow, which suggests the updater may be installing or handing off to a broken packaged build.
Root cause isolated to the electron-builder version used for the v1.0.33 build, not to a missing dependency declaration — and the packaging bug is already gone on main.
Evidence (all on the same source tree / same pnpm install --frozen-lockfile, packing win32 x64 with the repo config):
Shipped artifact is broken. Unpacked Omi-for-Windows-Setup-1.0.33.exe (latest Windows release): resources/app.asar.unpacked/node_modules/debug/src/common.js is present and does createDebug.humanize = require('ms'), but ms does not exist anywhere in the package (neither in app.asar nor app.asar.unpacked). That is exactly the reported Cannot find module 'ms'.
v1.0.33 was built with electron-builder 26.8.1 (pnpm-lock.yaml at the release commit dfae049).
Repacking today's main with electron-builder 26.8.1 reproduces it: app.asar.unpacked/node_modules/ms → ABSENT, debug → present.
Repacking the identical tree with 26.15.3 (what main pins today) ships it: app.asar.unpacked/node_modules/ms → present.
So the collector in app-builder-lib 26.8.x dropped that transitive dep under node-linker=hoisted; #10875 (merged 2026-07-30, after the v1.0.33 release) pinned electron-builder/app-builder-lib to ~26.15.0 and fixed it.
Remaining user impact: main is still at version 1.0.33, so the only Windows installer/auto-update available is the broken one. The remedy is cutting a new Windows release from main — no further code change is required for the crash itself. The durable guard is still worth having: the packaged-artifact probe in #10823 would have blocked publishing 1.0.33 (its ms dependency declaration is now belt-and-braces).
Follow-up: the broken 1.0.33 package has now been superseded by published Windows 1.0.34 and 1.0.35 installers after the electron-builder fix in #10875. #10854 has also merged, adding ms as a direct runtime dependency plus final-ASAR probes in both unsigned and signed packaging paths, so this exact omission now fails CI before release. The code and release-guard work is complete; this can be closed once the reporter confirms startup on 1.0.35.
#10875 pinned electron-builder ~26.15.0; current main Windows package.json is 1.0.35. Kodjima isolated 26.8.1 dropping transitive ms; 1.0.33 artifact superseded.
Activity
tianmind-studio commentedon Jul 29, 2026
I reproduced the startup failure from the packaged Windows artifact: electron-builder pruned
msfrom the Sentry/debug runtime chain, soapp.asar/out/main/index.jsfailed before startup. #10823 fixes that by declaringmsas a direct runtime dependency and adds a final-artifact probe to both unsigned and signed release paths; the rebuilt ASAR and isolated-profile Windows launch passed, and current CI is green. The fix is still awaiting human release-path review and has not merged yet.hugoaap-code commentedon Jul 29, 2026
Additional context for this existing issue:
This same
Cannot find module 'ms'startup crash also happens after using the in-app updater flow on Windows:Settings > About > Restart to install latest updateObserved behavior:
Restart to install latest updateA JavaScript error occurred in the main processError: Cannot find module 'ms'So this issue is not limited to restarting after a capture problem. It can also be triggered immediately after the built-in Windows update flow, which suggests the updater may be installing or handing off to a broken packaged build.
kodjima33 commentedon Aug 2, 2026
Root cause isolated to the electron-builder version used for the v1.0.33 build, not to a missing dependency declaration — and the packaging bug is already gone on
main.Evidence (all on the same source tree / same
pnpm install --frozen-lockfile, packing win32 x64 with the repo config):Omi-for-Windows-Setup-1.0.33.exe(latest Windows release):resources/app.asar.unpacked/node_modules/debug/src/common.jsis present and doescreateDebug.humanize = require('ms'), butmsdoes not exist anywhere in the package (neither inapp.asarnorapp.asar.unpacked). That is exactly the reportedCannot find module 'ms'.pnpm-lock.yamlat the release commitdfae049).mainwith electron-builder 26.8.1 reproduces it:app.asar.unpacked/node_modules/ms→ ABSENT,debug→ present.mainpins today) ships it:app.asar.unpacked/node_modules/ms→ present.So the collector in app-builder-lib 26.8.x dropped that transitive dep under
node-linker=hoisted; #10875 (merged 2026-07-30, after the v1.0.33 release) pinnedelectron-builder/app-builder-libto~26.15.0and fixed it.Remaining user impact:
mainis still at version 1.0.33, so the only Windows installer/auto-update available is the broken one. The remedy is cutting a new Windows release frommain— no further code change is required for the crash itself. The durable guard is still worth having: the packaged-artifact probe in #10823 would have blocked publishing 1.0.33 (itsmsdependency declaration is now belt-and-braces).tianmind-studio commentedon Aug 28, 2026
Follow-up: the broken 1.0.33 package has now been superseded by published Windows 1.0.34 and 1.0.35 installers after the electron-builder fix in #10875. #10854 has also merged, adding ms as a direct runtime dependency plus final-ASAR probes in both unsigned and signed packaging paths, so this exact omission now fails CI before release. The code and release-guard work is complete; this can be closed once the reporter confirms startup on 1.0.35.
aryanorastar commentedon Sep 20, 2026
Closing as already fixed on current main.
#10875 pinned electron-builder ~26.15.0; current main Windows package.json is 1.0.35. Kodjima isolated 26.8.1 dropping transitive ms; 1.0.33 artifact superseded.