I'm using [email protected] in my project.
I have patched a package (@pkg/pkg) with the command yarn patch @pkg/pkg
and I am using it as a devDependency with the patch:
protocol.
Now I need to make another patch to the same package - but when I run the same command I get Multiple candidate packages found [...]
.
It works when trying to target the original package (using yarn patch @pkg/[email protected])
, but I can't seem to find a way to target the patched project.
Any skilled yarn developer out there?
(Possibly useful information: I cannot use the resolutions
field for the patch since @pkg/pkg is a CLI which does not seem to work with this approach)
The solution was choose the patch suggested with the error and encapsule it in qoutes such as:
yarn patch "patch:..."