Skip to content

[Bug]: bun dev:desktop on Windows times out due to tsdown 0.20.3 #1968

@adammansfield

Description

@adammansfield

Related Pull Request

This bug is fixed by juliusmarminge's pull request #1616 as vp pack indirectly uses tsdown 0.21.7:

irm https://vite.plus/ps1 | iex # re-open terminal so vp in PATH
git fetch upstream pull/1616/merge:pull/1616
git switch pull/1616
vp install
node apps/desktop/node_modules/electron/install.js # needed if electron has incomplete installation 
vp run dev:desktop

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

  1. On Windows, run: bun dev:desktop

Expected behavior

The 'T3 Code (Dev)' Window appears and bun dev:desktop succeeds.

bun dev:desktop
# ...
@t3tools/desktop:dev: dev:electron | [16:54:14.043] INFO (#129): Listening on http://0.0.0.0:13773

Actual behavior

The 'T3 Code (Dev)' Window does not appear, and bun dev:desktop exits with the error:

bun dev:desktop
# ...
@t3tools/desktop:dev: dev:electron | error: Timed out waiting for desktop dev resources after 120000ms: file:dist-electron/main.js, file:dist-electron/preload.js
@t3tools/desktop:dev: dev:electron |       at waitForResources (C:\Users\adam\code\t3code\apps\desktop\scripts\wait-for-resources.mjs:112:17)
@t3tools/desktop:dev: dev:electron |
@t3tools/desktop:dev: dev:electron | Bun v1.3.11 (Windows x64 baseline)
@t3tools/desktop:dev: dev:electron | Exited with code 1
@t3tools/desktop:dev: dev:bundle   | Signaled: SIGINT
@t3tools/desktop:dev: error: script "dev" exited with code 130
# ...
error: script "dev:desktop" exited with code 1

Impact

Minor bug or occasional failure

Version or commit

main @ 7a0084

Environment

Windows 10 Pro (22H2)

Workaround

  1. Update tsdown version in package.json:
      "tsdown": "^0.21.7",
  1. Run: bun install
  2. Run: bun dev:desktop

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions