🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #1748

Bug#1151683: nodejs: TypeScript not recognized

#1748
From: Tom Overlund
Date: Fri, 23 Oct 2026 02:30
76 lines
3782 bytes
Package: nodejs
Version: 24.22.0+dfsg+~cs24.19.2-2
Severity: normal
X-Debbugs-Cc: tomov@dilacero.org

Simple test:

```
$ cat hello.ts
let message: string = 'Hello, World!';
console.log(message);

$ node hello.ts
/home/virt/projects/hello_ts/hello.ts:1
let message: string = 'Hello, World!';
           ^

SyntaxError: Unexpected token ':'
    at wrapSafe (node:internal/modules/cjs/loader:1861:18)
    at Module._compile (node:internal/modules/cjs/loader:1903:20)
    at Object..js (node:internal/modules/cjs/loader:2060:10)
    at Module.load (node:internal/modules/cjs/loader:1651:32)
    at Module._load (node:internal/modules/cjs/loader:1443:12)
    at wrapModuleLoad (node:internal/modules/cjs/loader:261:19)
    at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
    at node:internal/main/run_main_module:33:47

Node.js v24.22.0
```

Same test run from a vanilla build of upstream Node.js:

```
$ node hello.ts
Hello, World!

$ node --version
v24.22.2-pre
```

TypeScript should be natively supported in Node.js in version 24. I believe
this is also causing problems when trying to build npm packages in
sid. Typical error:

    npm notice run node build/npm/preinstall.ts
    node:internal/modules/esm/get_format:243
      throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath);

(Note I don't have npm currently installed, but I did previously when
encountering these errors.)

-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 7.2.11+deb14-amd64 (SMP w/1 CPU thread; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nodejs depends on:
ii  libc6          2.43-7
ii  libnode137     24.22.0+dfsg+~cs24.19.2-2
ii  node-corepack  0.35.0-2

Versions of packages nodejs recommends:
ii  ca-certificates  20260816
ii  nodejs-doc       24.22.0+dfsg+~cs24.19.2-2

Versions of packages nodejs suggests:
pn  npm  <none>

-- no debconf information
Technical Details
Message-ID: <NRdcB-7iZi-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Tom Overlund <tomov@dilacero.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1151683: nodejs: TypeScript not recognized
Date: Fri, 23 Oct 2026 04:30:01 +0200
Message-ID: <NRdcB-7iZi-1@gated-at.bofh.it>
X-Original-To: submit@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Oct 23 02:29:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.65
Reply-To: Tom Overlund <tomov@dilacero.org>, 1151683@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: tomov@dilacero.org, pkg-javascript-devel@alioth-lists.debian.net
X-Debian-Pr-Message: report 1151683
X-Debian-Pr-Package: nodejs
X-Debian-Pr-Source: nodejs
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Greylist: delayed 2292 seconds by postgrey-1.37 at buxtehude; Fri, 23 Oct 2026 02:27:45 UTC
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1998200
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 76
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 22 Oct 2026 21:49:23 -0400
X-Original-Message-ID: <atq9I743paXCsQ_C@dilacero.org>