Skip to content

Nightly 0.0.29-nightly.20260719.849 won't launch on Windows: effect missing from app.asar.unpacked (ERR_MODULE_NOT_FOUND Context) #4154

Description

@MasjidSayyidAlKawnayn

Summary

Windows Nightly 0.0.29-nightly.20260719.849 crashes on launch with a main-process ERR_MODULE_NOT_FOUND for effect/Context, imported from @effect/platform-node's NodeHttpClient.js.

This looks like a packaging regression: effect (and related deps) are listed in the asar index as unpacked files, but are not present under resources/app.asar.unpacked/node_modules/.

Area

Build, CI, or release tooling / Desktop packaging

Steps to reproduce

  1. Install T3 Code Nightly 0.0.29-nightly.20260719.849 on Windows x64 (T3-Code-0.0.29-nightly.20260719.849-x64.exe)
  2. Launch T3 Code (Nightly)

Expected behavior

App launches normally.

Actual behavior

Uncaught exception dialog:

A JavaScript error occurred in the main process

Uncaught Exception:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '...app.asar\node_modul...\Context'
imported from '...app.asar\...\NodeHttpClient.js'

Stack points at Node ESM resolution (finalizeResolution / moduleResolve).

Investigation notes

On a machine with 849 installed:

  • Import path in packaged code: import * as Context from "effect/Context" from @effect/platform-node/dist/NodeHttpClient.js
  • @effect/platform-node is present under app.asar.unpacked/node_modules/@effect/platform-node
  • effect is missing from app.asar.unpacked/node_modules/effect
  • Extracting node_modules\effect\package.json / dist\Context.js via @electron/asar fails with ENOENT under app.asar.unpacked\... (files marked unpacked but not on disk)
  • Related deps also missing from unpacked in that build: undici, mime (peer/runtime deps of @effect/platform-node)

This is distinct from (but in the same family as) #3789 / #3790 (pnpm 11 deduped deps dropped from asar). Here the failure mode is specifically unpacked index entries with missing unpacked payloads.

Workaround

Rolling back to a prior Nightly works. Confirmed working:

  • 0.0.29-nightly.20260712.791 (local updater cache installer; effect/dist/Context.js present under app.asar.unpacked)

Environment

  • OS: Windows 10/11 (win32 10.0.26200), x64
  • App: T3 Code (Nightly) 0.0.29-nightly.20260719.849
  • Install path: %LocalAppData%\Programs\t3code

Impact

Blocks Nightly launch completely on Windows for this build.

Happy to provide more asar listings / installer hashes if useful.

Activity

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

    bugSomething is broken or behaving incorrectly.🚧 In Progress

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions