I volunteered to upgrade Yarn to fix this problem. It’s a bit complicated because the resulting changes creates a diff that is too large for a single GitHub PR.
The first PR is here: https://github.com/exercism/typescript/pull/1406
This PR upgrades Yarn to 3.6.4 in common files and about half of the exercises. This needs to be merged first.
The second PR is here: https://github.com/exercism/typescript/pull/1407
That PR upgrades Yarn to 3.6.4 for all remaining exercises. It must be merged after the first one (possibly needing a rebase beforehand).
I am unsure who to contact to proceed, so I am posting this here. Feel free to contact me in this thread or on Discord (username: danov66) for any questions, or if there’s something I need to fix in my PRs.
One last note: ideally, Yarn would also need to be updated in the TypeScript test runner. I was unable to get the build steps to run locally however, so I did not take stab at it. This is less urgent however, because the test runner currently uses Node 18.x which is unaffected by the issue at hand.