Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1014914: Regression in @types

44 views
Skip to first unread message

Mark Weyer

unread,
Jul 14, 2022, 8:10:04 AM7/14/22
to

Package: nodejs

Version: 12.22.12~dfsg-1~deb11u1

 

The upgrade from Version 12.22.5~dfsg-2~11u1 to 12.22.12~dfsg-1~deb11u1 broke Typescript (from package node-typescript) for me.

For a minimal example, let test.ts contain just the following line:

 

  process.exit(0)

 

And compile it with

 

  tsc --typeRoots /usr/share/nodejs/@types/node test.ts

 

With Version 12.22.5~dfsg-2~11u1, everything is fine. With Version 12.22.12~dfsg-1~deb11u1 I get

 

  test.ts:1:1 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.

 

  1 process.exit(0)

    ~~~~~~~

 

 

  Found 1 error.

 

Best regards,

 

  Mark Weyer

 

 

Hahn-Schickard

Dr. Mark Weyer

Application Engineering

 

Telefon: +49 7721 943-189

E-Mail: Mark....@Hahn-Schickard.de

 

Hahn-Schickard-Gesellschaft für angewandte Forschung e.V.

Wilhelm-Schickard-Str. 10

D-78052 Villingen-Schwenningen

www.Hahn-Schickard.de

 

Wir verweisen hiermit auf unsere Datenschutzerklärung.

 

Jérémy Lal

unread,
Jul 14, 2022, 9:30:03 AM7/14/22
to
Le jeu. 14 juil. 2022 à 14:03, Mark Weyer <Mark....@hahn-schickard.de> a écrit :

Package: nodejs

Version: 12.22.12~dfsg-1~deb11u1

 

The upgrade from Version 12.22.5~dfsg-2~11u1 to 12.22.12~dfsg-1~deb11u1 broke Typescript (from package node-typescript) for me.

For a minimal example, let test.ts contain just the following line:

 

  process.exit(0)

 

And compile it with

 

  tsc --typeRoots /usr/share/nodejs/@types/node test.ts

 

With Version 12.22.5~dfsg-2~11u1, everything is fine. With Version 12.22.12~dfsg-1~deb11u1 I get

 

  test.ts:1:1 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.

 

  1 process.exit(0)

    ~~~~~~~

  Found 1 error.


Thank you for your report.

The latest typescript definitions for nodejs 12.22.12 dropped support for tsc 3.6 by removing @types/node/tsc3.6 directory.
That's unfortunate because bullseye have tsc 3.6.

Workaround:
ln -sT /usr/share/nodejs/@types/node /usr/share/nodejs/@types/node/tsc3.6 

I'm not sure what's the best solution now.

Jérémy
0 new messages