t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Nightly won't launch: Cannot find package 'fast-check' (app.asar missing ~40 transitive deps)

Open avocardow opened this issue 4 months ago • 8 comments

Before submitting

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

Area

Build, CI, or release tooling

Steps to reproduce

  1. Install T3 Code (Nightly) 0.0.29-nightly.20260708.754 on macOS arm64 (reinstall doesn't help)
  2. Launch it

Or from a clean checkout of master (03ac1f0cd):

  1. pnpm install
  2. node scripts/build-desktop-artifact.ts --platform mac --target dir --arch arm64
  3. npx @electron/asar list "<built .app>/Contents/Resources/app.asar" | grep fast-check -> nothing

Expected behavior

App launches. Built asar contains every transitive prod dep.

Actual behavior

Uncaught exception dialog on launch, window never opens. Opened the asar - 44 declared prod deps are missing from node_modules (ms, ws, which, scheduler, msgpackr, conf, uuid, ini, find-my-way-ts, the hast-util/shiki tree, etc).

Impact

Blocks work completely

Version or commit

0.0.29-nightly.20260708.754 (master @ 03ac1f0cd)

Environment

macOS 26.5 arm64, Node 24.18.0, pnpm 11.10.0

Logs or stack traces

Uncaught Exception:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'fast-check' imported from /Applications/T3 Code (Nightly).app/Contents/Resources/app.asar/node_modules/effect/dist/testing/FastCheck.js
    at Object.getPackageJSONURL (node:internal/modules/package_json_reader:301:9)
    at packageResolve (node:internal/modules/esm/resolve:776:81)
    at moduleResolve (node:internal/modules/esm/resolve:867:18)
    at defaultResolve (node:internal/modules/esm/resolve:1000:11)

Screenshots, recordings, or supporting files

No response

Workaround

Roll back to a nightly built before #3772.

avocardow avatar Jul 08 '26 03:07 avocardow

Facing same issue

wiput1999 avatar Jul 08 '26 04:07 wiput1999

For anyone hitting this on macOS arm64: the last good nightly is v0.0.29-nightly.20260707.751, published ~40 min before #3772 merged.

Direct download: T3-Code-0.0.29-nightly.20260707.751-arm64.zip

Verified its app.asar contains fast-check (and launches fine), unlike the 754 build.

basnijholt avatar Jul 08 '26 05:07 basnijholt

Also happen on Fedora 44. Downgrade to 751 for now

uzuki-P avatar Jul 08 '26 06:07 uzuki-P

exact same issue on ubuntu 26.04

JeroenBolhuis avatar Jul 08 '26 09:07 JeroenBolhuis

Curious if others can confirm the fix in this PR

avocardow avatar Jul 08 '26 09:07 avocardow

Updated, it now doesn't show the error but still fails to open just without the error message

Rowan-Paul avatar Jul 08 '26 13:07 Rowan-Paul

Updated, it now doesn't show the error but still fails to open just without the error message

@avocardow @juliusmarminge Same thing for me. It doesn't open, but now with no error message.

xharauenea avatar Jul 08 '26 14:07 xharauenea

I can force a white window to appear if i press "check to update"

Image

Rowan-Paul avatar Jul 08 '26 15:07 Rowan-Paul