Skip to content

[Bug]: Impossible rebuild #46677

Closed as not planned
Closed as not planned

Description

@Boxytus

Bug Description

Title: Desktop rebuild fails on main — @assistant-ui/tap missing ./react-shim export

Env: Windows, update via bootstrap --branch main, hermes@0.15.1,
@assistant-ui/tap@0.5.14, electron-v40.10.3.

vite build (apps/desktop) fails:
"./react-shim" is not exported under ["module","browser","production","import"]
from @assistant-ui/tap (exports field). The package (0.5.14) only exports
"." and "./react"; no react-shim file exists. Something in apps/desktop
imports @assistant-ui/tap/react-shim -> deterministic build failure (npm code 1).

Note: the installer then reports "Electron download blocked / retry via mirror" —
this is a misdiagnosis; the real failure is the module-resolution error above.

Repro: update to current main; cd apps/desktop && npm run pack.

Steps to Reproduce

Title: Desktop rebuild fails on main — @assistant-ui/tap missing ./react-shim export

Env: Windows, update via bootstrap --branch main, hermes@0.15.1,
@assistant-ui/tap@0.5.14, electron-v40.10.3.

vite build (apps/desktop) fails:
"./react-shim" is not exported under ["module","browser","production","import"]
from @assistant-ui/tap (exports field). The package (0.5.14) only exports
"." and "./react"; no react-shim file exists. Something in apps/desktop
imports @assistant-ui/tap/react-shim -> deterministic build failure (npm code 1).

Note: the installer then reports "Electron download blocked / retry via mirror" —
this is a misdiagnosis; the real failure is the module-resolution error above.

Repro: update to current main; cd apps/desktop && npm run pack.

Expected Behavior

Title: Desktop rebuild fails on main — @assistant-ui/tap missing ./react-shim export

Env: Windows, update via bootstrap --branch main, hermes@0.15.1,
@assistant-ui/tap@0.5.14, electron-v40.10.3.

vite build (apps/desktop) fails:
"./react-shim" is not exported under ["module","browser","production","import"]
from @assistant-ui/tap (exports field). The package (0.5.14) only exports
"." and "./react"; no react-shim file exists. Something in apps/desktop
imports @assistant-ui/tap/react-shim -> deterministic build failure (npm code 1).

Note: the installer then reports "Electron download blocked / retry via mirror" —
this is a misdiagnosis; the real failure is the module-resolution error above.

Repro: update to current main; cd apps/desktop && npm run pack.

Actual Behavior

Title: Desktop rebuild fails on main — @assistant-ui/tap missing ./react-shim export

Env: Windows, update via bootstrap --branch main, hermes@0.15.1,
@assistant-ui/tap@0.5.14, electron-v40.10.3.

vite build (apps/desktop) fails:
"./react-shim" is not exported under ["module","browser","production","import"]
from @assistant-ui/tap (exports field). The package (0.5.14) only exports
"." and "./react"; no react-shim file exists. Something in apps/desktop
imports @assistant-ui/tap/react-shim -> deterministic build failure (npm code 1).

Note: the installer then reports "Electron download blocked / retry via mirror" —
this is a misdiagnosis; the real failure is the module-resolution error above.

Repro: update to current main; cd apps/desktop && npm run pack.

Affected Component

Configuration (config.yaml, .env, hermes setup)

Messaging Platform (if gateway-related)

No response

Debug Report

Title: Desktop rebuild fails on main — @assistant-ui/tap missing ./react-shim export

Env: Windows, update via bootstrap --branch main, hermes@0.15.1,
     @assistant-ui/tap@0.5.14, electron-v40.10.3.

vite build (apps/desktop) fails:
  "./react-shim" is not exported under ["module","browser","production","import"]
  from @assistant-ui/tap (exports field). The package (0.5.14) only exports
  "." and "./react"; no react-shim file exists. Something in apps/desktop
  imports @assistant-ui/tap/react-shim -> deterministic build failure (npm code 1).

Note: the installer then reports "Electron download blocked / retry via mirror" —
this is a misdiagnosis; the real failure is the module-resolution error above.

Repro: update to current main; cd apps/desktop && npm run pack.

Operating System

windows 11

Python Version

No response

Hermes Version

No response

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Activity

  1. added
    type/bugSomething isn't working
    comp/tuiTerminal UI (ui-tui/ + tui_gateway/)
    P2Medium — degraded but workaround exists
    duplicateThis issue or pull request already exists
    on Jun 15, 2026
  2. alt-glitch commented on Jun 15, 2026

    @alt-glitch

    Duplicate of #45551 (hermes desktop build fails -- @assistant-ui/tap missing ./react-shim export). Same module-resolution failure. Open fix PR #45559 aliases @assistant-ui/tap/react-shim -> react and bumps tsconfig; #46669 tracks the npm-dedup version-pin angle that installs 0.5.x instead of ^0.9.2.

  3. Ac31415 commented on Jun 15, 2026

    @Ac31415

    now the desktop app broke because of the latest update....
    I wish there's a revert to last working update option through the desktop app.

  4. scorpio-dot commented on Jun 15, 2026

    @scorpio-dot

    Yeah, Windows and Linux.
    [rolldown:vite-resolve] plugin rolldown:vite-resolve threw an error

  5. Yonom commented on Jun 17, 2026

    @Yonom

    (I work on assistant-ui) So sorry on our end for this, I just published a forwards compatible @assistant-ui/tap@0.5.15 that fixes this issue. I believe the main repo also pins the /store package now.

  6. added
    comp/desktopElectron desktop app (apps/desktop/*)
    dependenciesPull requests that update a dependency file
    and removed
    comp/tuiTerminal UI (ui-tui/ + tui_gateway/)
    on Jun 26, 2026
  7. teknium1 commented on Jul 14, 2026

    @teknium1
    Collaborator

    This is resolved on current main; closing as an automated hermes-sweeper review.

    • Commit eae3836eb661732b4f3be88231a21d7a2fd66702 pins @assistant-ui/store through the root package.json override, preventing the incompatible tap dependency split.
    • Current package-lock.json resolves @assistant-ui/store@0.2.13 with hoisted @assistant-ui/tap@0.5.16 (package-lock.json:422-444).
    • tests/test_assistant_ui_tap_compat.py:97-130 guards the dependency-cluster invariant, and .github/workflows/typecheck.yml:31-51 runs the production desktop Vite build to catch this exact export-resolution failure.
    • This matches the linked duplicate cluster and the assistant-ui maintainer's note that a compatible tap release was published.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/desktopElectron desktop app (apps/desktop/*)dependenciesPull requests that update a dependency fileduplicateThis issue or pull request already existssweeper:implemented-on-mainSweeper: behavior already present on current maintype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions