Project suddenly became un-runnable with a 'path-to-regexp' error

Hey,

One of our projects suddenly became un-runnable due to a ‘path-to-regexp’ error locally when I’m trying to start it with npm run dev. A few weeks ago it was working just fine, there wasn’t any significant updates to the repo (also comes up when I checkout previous SHAs). My teammates are also perfectly able to run the project using the same git branches. (other projects are running locally with very similar setups)

Here is the error:

I tried to use a couple different npm versions, also tried to reclone and npm install with all of these, but none of them worked.

Screenshot 2024-04-02 163120

Any ideas on how could I run the project again?