[@types/node] ts4.8\events.d.ts(106,43): Error TS2370: Build:A rest parameter must be of an array type. #68889
-
[@types\node] latest release is breaking the build. The ado build using visual studio 2022 is failing on version 20.11.24 with error: tsconfig:
It works fine with old version. I tested by overriding:
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 3 replies
-
Thanks for the discussion about "node", some useful links for everyone: Pinging the DT module owners: @microsoft, @jkomyno, @alvis, @r3nya, @btoueg, @smac89, @Touffy, @DeividasBakanas, @eyqs, @Hannes-Magnusson-CK, @hoo29, @kjin, @ajafff, @islishude, @mwiktorczyk, @mohsen1, @n-e, @galkin, @parambirs, @eps1lon, @ThomasdenH, @WilcoBakker, @wwwy3y3, @samuela, @kuehlein, @bhongy, @chyzwar, @trivikr, @yoursunny, @qwelias, @ExE-Boss, @peterblazejewicz, @addaleax, @victorperin, @ZYSzys, @nodejs, @LinusU, @wafuwafu13, @mcollina, @Semigradsky. |
Beta Was this translation helpful? Give feedback.
-
/cc @malthe (owner of implementation change) |
Beta Was this translation helpful? Give feedback.
-
@raj-kumar what version of tsc is this? How is this ADO build different than the ones running here in the CI workflow? |
Beta Was this translation helpful? Give feedback.
-
@raj-kumar I can reproduce the error only with TypeScript 4.5.5 – see playground. With any later version, the issue goes away. Are you sure this is compiled with 4.8.4? |
Beta Was this translation helpful? Give feedback.
-
Oh, I think it is using 4.3 on build agent. But still, it should not fail, the changes should be backward compatible? |
Beta Was this translation helpful? Give feedback.
-
@peterblazejewicz recommend we close this discussion because it concerns an older version which we no longer support. |
Beta Was this translation helpful? Give feedback.
-
For those using nuget packages (in visual studio), if you have the Microsoft.TypeScript.MSBuild nuget package, you probably need to upgrade. |
Beta Was this translation helpful? Give feedback.
The CI currently doesn't test lower than 4.6.
I suppose there's a lower limit, but I'm not sure it's made explicit by the maintainers. Probably?