0👍
This question is not really solvable without having the whole context and making an in-depth analysis of all the packages one by one: upgrading the legacy ones, removing the deprecated ones and figuring out what kind of specific configuration is in place (Stylus for example).
The given reproduction kinda shows the issue, but we cannot just solve them in package.json
because it may break the logic that is based on those specific versions.
Since the project is private, there is no real way to help here without having more info.
Source:stackexchange.com