Closed
Description
In #3161, @scinos suggested we use yarn-deduplicate
to fix duplicate dependencies in our lockfile (link to comment). The yarn-deduplicate project README says:
This package only works with Yarn v1. Yarn v2 supports package deduplication natively!
So it seems like we could consider migrating to v2 as an alternative way to avoid this problem. The yarn documentation mentions that it's intended to be installed on a per-project basis (rather than globally) so we should be able to progressively upgrade our projects. There is also a migration guide that provides step-by-step instructions.