Open Eli-Black-Work opened 3 years ago
As a workaround, users can add the following lines to their .yarmrc.yml file 🙂
# react-step-progress-bar depends on react-transition-group, which lists react-dom as a peerDependency. This means that react-step-progress-bar should also list react-dom as a peerDependency, but it doesn't yet.
# This gives us an error while compiling, so we patch react-step-progress-bar to add react-dom as a peerDependency
#
# Bug report: https://github.com/pierreericgarcia/react-step-progress-bar/issues/26
packageExtensions:
react-step-progress-bar@*:
peerDependencies:
"react-dom": "*"
I believe
react
andreact-dom
should be listed as peer dependencies instead of dev dependencies inreact-step-progress-bar
'spackage.json
file:Without this, we have an issue:
Currently
react-step-progress-bar
depends onreact-transition-group
, which listsreact-dom
as a peer dependency. Sincereact-step-progress-bar
listsreact-dom
as a dev dependency instead of a peer dependency, we get an error when using the library with Yarn Berry's PnP (Plug and Play) feature turned on: