79666284

Date: 2025-06-15 03:47:32
Score: 3
Natty:
Report link

I have the exact same problem, and in my case npx tsx script works but the IDE Typescript service throws the above error. I gave up trying to solve this, I don't think it's worth the time. Instead, a simple built-in alternative in JS is:

let arr = [1, 2, 3];
Math.max(...arr);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the exact same problem
  • Low reputation (0.5):
Posted by: forumulator