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
Running Desktop from current main leaves the window on the preload skeleton
indefinitely. The renderer fails before React mounts. Desktop should finish
loading and show the application shell.
The regression was introduced by #4490 (9e1ad2ed5), which added a node:crypto value import to the browser-consumed @maka/runtime-host/protocol entry point.
How to reproduce
Check out main at 106891630 or later.
Install and build the workspace dependencies.
Start Desktop with the normal development command.
Observe that the window remains on the preload skeleton.
Open the renderer DevTools console.
Environment
Maka commit: 106891630
OS: macOS 26.6.2 (25G83), Apple Silicon
Surface: Desktop development build
Node.js: v24.16.0
Logs, screenshots, or additional context
The first renderer error is:
Uncaught Error: Module "node:crypto" has been externalized for browser
compatibility. Cannot access "node:crypto.createHash" in client code.
The stack starts at packages/runtime-host/dist/protocol/client-capability.js:1:50.
@maka/runtime-host/protocol is imported by renderer modules for shared
protocol constants and decoders. Adding createHash at module scope makes the
entire protocol barrel unsafe to evaluate in Vite's browser target, even when
the renderer never calls clientCapabilityEntityId.
A fix should keep Node-only hashing out of the browser-consumed protocol
module rather than polyfilling Node crypto in the renderer. A regression check
should exercise the renderer bundle or otherwise reject Node built-ins from
browser-reachable value imports.
Activity
Phoenix500526 commentedon Sep 4, 2026
take
fix(desktop): keep Node crypto out of renderer (apache#4705)