Skip to content

[Bug]: Nightly fails to launch on Windows Server 2025: Cannot find native binding #10814

Description

@Porkstone

Before submitting

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

Area

apps/desktop

Summary

The T3 Code nightly desktop app fails to launch on Windows Server 2025. An Electron error dialog reports "A JavaScript error occurred in the main process" and an uncaught "Cannot find native binding" exception.

Steps to reproduce

  1. Install T3 Code nightly 0.0.41-nightly.20260908.1400 on Windows Server 2025.
  2. Launch the installed desktop app.
  3. Observe the main-process JavaScript error dialog; the app cannot be used.

Expected behavior

The desktop app launches successfully and displays its normal interface.

Actual behavior

Startup fails with an uncaught native-binding exception. The dialog includes generic advice to run npm i after removing package-lock.json and node_modules, although this is an installed desktop build.

Impact

Blocks work completely: unable to launch the desktop app.

Version or commit

0.0.41-nightly.20260908.1400 (read from the installed executable's file version; product name: T3 Code (Nightly)).

Environment

  • Microsoft Windows Server 2025 Standard Evaluation
  • OS version: 10.0.26100
  • OS architecture: 64-bit
  • Installed desktop application under %LOCALAPPDATA%\Programs\t3code

Logs or stack traces

Transcribed from the error screenshot. Two long file paths are truncated by the dialog; ... below marks those truncations. The underlying native package name is not visible, so the failing dependency and root cause are not yet confirmed.

A JavaScript error occurred in the main process

Uncaught Exception:
Error: Cannot find native binding. npm has a bug related to optional dependencies
(https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both
package-lock.json and node_modules directory.
    at Object.<anonymous>
    (C:\Users\Administrator\AppData\Local\Programs\t3code\resources\app.asar\node_mo...:11)
    at Module._compile (node:internal/modules/cjs/loader:1880:14)
    at Object.js (node:internal/modules/cjs/loader:2013:10)
    at Module.load (node:internal/modules/cjs/loader:1601:32)
    at node:internal/modules/cjs/loader:1403:12
    at c._load (node:electron/js2c/node_init:2:18159)
    at Module.load (node:internal/modules/cjs/loader:262:19)
    at Module.require (node:internal/modules/cjs/loader:1624:12)
    at require (node:internal/modules/helpers:153:16)
    at Module.<anonymous>
    (C:\Users\Administrator\AppData\Local\Programs\t3code\resources\app.asar\apps\des...:24)

Related reports

#3125 reports an earlier missing native binding in a nightly backend. #8201 concerns Windows application-control blocking native addons. These may help investigation, but this screenshot shows a main-process startup exception and does not establish either underlying cause.

Workaround

None confirmed.

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

    acceptedfeature request acceptedbugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions