Desktop typecheck error: Cannot find name 'platform' #6166

Open
opened 2026-02-16 18:01:17 -05:00 by yindo · 0 comments
Owner

Originally created by @jerome-benoit on GitHub (Jan 15, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

Desktop package fails typecheck with error:

src/index.tsx:300:5 - error TS2304: Cannot find name 'platform'.

Cause

PR #7360 introduced an event listener that references platform.openLink() before platform is defined.

Impact

  • Build fails on pre-push hook
  • Cannot push to repository
  • Introduced in commit 779610d66

Expected Behavior

Typecheck should pass.

Originally created by @jerome-benoit on GitHub (Jan 15, 2026). Originally assigned to: @adamdotdevin on GitHub. ## Description Desktop package fails typecheck with error: ``` src/index.tsx:300:5 - error TS2304: Cannot find name 'platform'. ``` ## Cause PR #7360 introduced an event listener that references `platform.openLink()` before `platform` is defined. ## Impact - Build fails on pre-push hook - Cannot push to repository - Introduced in commit 779610d66 ## Expected Behavior Typecheck should pass.
yindo added the web label 2026-02-16 18:01:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6166