Le jeu. 14 juil. 2022 à 14:03, Mark Weyer <mark.we...@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