8

After upgrading to yarn 3, when I run yarn install, the resolutions are getting removed from package.json and added in yarn.lock file.

Are resolutions not supposed to reside in package.json when using yarn 3?

John Web
  • 83
  • 3
  • I'm also finding that yarn 3 is automatically removing resolutions for nested packages. E.g. `x/**/y: 1.0.0` – J M Rossy Nov 30 '22 at 18:00

1 Answers1

0

You need to use yarn set resolution with the newer versions of yarn: https://yarnpkg.com/cli/set/resolution

Warning! To persist the changes, use the -s flag or you'll lose the custom resolution when you regenerate your yarn.lock file.

Lilleman
  • 7,392
  • 5
  • 27
  • 36