Article View: linux.debian.bugs.dist
Article #1778Bug#1151683: nodejs: TypeScript not recognized
From: Jérémy Lal
Date: Fri, 23 Oct 2026 08:20
Date: Fri, 23 Oct 2026 08:20
201 lines
9328 bytes
9328 bytes
--0000000000004b8a6b065e7d841d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le ven. 23 oct. 2026 =C3=A0 04:29, Tom Overlund <tomov@dilacero.org> a =C3= =A9crit : > 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 =3D 'Hello, World!'; > console.log(message); > > $ node hello.ts > /home/virt/projects/hello_ts/hello.ts:1 > let message: string =3D '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.js in Debian is missing node-amaro, which uses swc to parse typescript= . I'll look again if it's possible to package it now, as there have been efforts to package the missing pieces (swc). > > ``` > $ node hello.ts > Hello, World! > > $ node --version > v24.22.2-pre > ``` > > TypeScript should be natively supported in Node.js in version 24. I belie= ve > 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=3Den_US.UTF-8, LC_CTYPE=3Den_US.UTF-8 (charmap=3DUTF-8), LAN= GUAGE > 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 > --0000000000004b8a6b065e7d841d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote g= mail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">Le=C2=A0ven. 23= oct. 2026 =C3=A0=C2=A004:29, Tom Overlund <<a href=3D"mailto:tomov@dila= cero.org">tomov@dilacero.org</a>> a =C3=A9crit=C2=A0:<br></div><blockquo= te class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px = solid rgb(204,204,204);padding-left:1ex">Package: nodejs<br> Version: 24.22.0+dfsg+~cs24.19.2-2<br> Severity: normal<br> X-Debbugs-Cc: <a href=3D"mailto:tomov@dilacero.org" target=3D"_blank">tomov= @dilacero.org</a><br> <br> Simple test:<br> <br> ```<br> $ cat hello.ts<br> let message: string =3D 'Hello, World!';<br> console.log(message);<br> <br> $ node hello.ts<br> /home/virt/projects/hello_ts/hello.ts:1<br> let message: string =3D 'Hello, World!';<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^<br> <br> SyntaxError: Unexpected token ':'<br> =C2=A0 =C2=A0 at wrapSafe (node:internal/modules/cjs/loader:1861:18)<br> =C2=A0 =C2=A0 at Module._compile (node:internal/modules/cjs/loader:1903:20)= <br> =C2=A0 =C2=A0 at Object..js (node:internal/modules/cjs/loader:2060:10)<br> =C2=A0 =C2=A0 at Module.load (node:internal/modules/cjs/loader:1651:32)<br> =C2=A0 =C2=A0 at Module._load (node:internal/modules/cjs/loader:1443:12)<br= > =C2=A0 =C2=A0 at wrapModuleLoad (node:internal/modules/cjs/loader:261:19)<b= r> =C2=A0 =C2=A0 at Module.executeUserEntryPoint [as runMain] (node:internal/m= odules/run_main:154:5)<br> =C2=A0 =C2=A0 at node:internal/main/run_main_module:33:47<br> <br> Node.js v24.22.0<br> ```<br> <br> Same test run from a vanilla build of upstream Node.js:<br></blockquote><di= v><br></div><div>Node.js in Debian is missing node-amaro, which uses swc to= parse typescript.</div><div>I'll look again if it's possible to pa= ckage it now, as there have been efforts to package</div><div>the missing p= ieces (swc).</div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding= -left:1ex"> <br> ```<br> $ node hello.ts<br> Hello, World!<br> <br> $ node --version<br> v24.22.2-pre<br> ```<br> <br> TypeScript should be natively supported in Node.js in version 24. I believe= <br> this is also causing problems when trying to build npm packages in<br> sid. Typical error:<br> <br> =C2=A0 =C2=A0 npm notice run node build/npm/preinstall.ts<br> =C2=A0 =C2=A0 node:internal/modules/esm/get_format:243<br> =C2=A0 =C2=A0 =C2=A0 throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath);<b= r> <br> (Note I don't have npm currently installed, but I did previously when<b= r> encountering these errors.)<br> <br> -- System Information:<br> Debian Release: forky/sid<br> =C2=A0 APT prefers unstable<br> =C2=A0 APT policy: (500, 'unstable')<br> Architecture: amd64 (x86_64)<br> <br> Kernel: Linux 7.2.11+deb14-amd64 (SMP w/1 CPU thread; PREEMPT)<br> Locale: LANG=3Den_US.UTF-8, LC_CTYPE=3Den_US.UTF-8 (charmap=3DUTF-8), LANGU= AGE not set<br> Shell: /bin/sh linked to /usr/bin/dash<br> Init: systemd (via /run/systemd/system)<br> LSM: AppArmor: enabled<br> <br> Versions of packages nodejs depends on:<br> ii=C2=A0 libc6=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 2.43-7<br> ii=C2=A0 libnode137=C2=A0 =C2=A0 =C2=A024.22.0+dfsg+~cs24.19.2-2<br> ii=C2=A0 node-corepack=C2=A0 0.35.0-2<br> <br> Versions of packages nodejs recommends:<br> ii=C2=A0 ca-certificates=C2=A0 20260816<br> ii=C2=A0 nodejs-doc=C2=A0 =C2=A0 =C2=A0 =C2=A024.22.0+dfsg+~cs24.19.2-2<br> <br> Versions of packages nodejs suggests:<br> pn=C2=A0 npm=C2=A0 <none><br> <br> -- no debconf information<br> </blockquote></div></div> --0000000000004b8a6b065e7d841d--
Technical Details
Message-ID:
<NRiFj-7mbm-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.datentrampelpfad.de!news.imp.ch!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomodReferences:
<NRdcB-7iZi-1@gated-at.bofh.it> <NRdcB-7iZi-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.datentrampelpfad.de!news.imp.ch!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod From: Jérémy Lal <kapouer@melix.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1151683: nodejs: TypeScript not recognized Date: Fri, 23 Oct 2026 10:20:01 +0200 Message-ID: <NRiFj-7mbm-3@gated-at.bofh.it> References: <NRdcB-7iZi-1@gated-at.bofh.it> <NRdcB-7iZi-1@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Oct 23 08:13:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.449 Reply-To: Jérémy Lal <kapouer@melix.org>, 1151683@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-javascript-devel@alioth-lists.debian.net X-Debian-Pr-Message: followup 1151683 X-Debian-Pr-Package: nodejs X-Debian-Pr-Source: nodejs X-Forwarded-Encrypted: i=1; AKwUvBx/KLF9Q1wIfRwEJoE8Fz5M5A+CUTfHN8gu8V4C6zXctF5XjldJ3+WOiHphSyGETnGJCcD7EiEO@bugs.debian.org X-Gm-Message-State: AFq9FYIHfPH+J4gQ0W+hD83cl29NHojViTt1hndsuLnXRYmrhjYrataa ZL2JR7TY4/dxU807GjLiC0J8X+arqP93bD5imvsHl5VKh0gNu9vm2KX1JEWcRn9sSDJtA7PR+1g 0UlZMTifAD5XhlARM5M4jBLktiafTZ+LddvlzO/7F X-Received: by 2002:ad4:5aaf:0:b0:91b:8059:5037 with SMTP id 6a1803df08f44-91c3ab19e42mr17306366d6.32.1792743043723; Fri, 23 Oct 2026 01:10:43 -0700 (PDT) MIME-Version: 1.0 X-Gmail-Original-Message-ID: <CAJxTCxzbh-Cxea5LP8QS3CwWM9wTVXsdVVPnPAvFn+DvrNw3Ng@mail.gmail.com> X-Gm-Features: AclHuK-zmfFmE7eAufv42Ea-HIa3YfPXIf9CSf1sB3qBc0ZSD35EpRokKekbX30 Content-Type: multipart/alternative; boundary="0000000000004b8a6b065e7d841d" X-Av-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Fri Oct 23 10:10:45 2026 +0200 (CEST)) X-Org-Mail: jeremy.lal.1997@polytechnique.org X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1998245 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 201 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 23 Oct 2026 10:10:06 +0200 X-Original-Message-ID: <CAJxTCxzbh-Cxea5LP8QS3CwWM9wTVXsdVVPnPAvFn+DvrNw3Ng@mail.gmail.com> X-Original-References: <atq9I743paXCsQ_C@dilacero.org> <atq9I743paXCsQ_C@dilacero.org>