(Yarn PnP) Add react-transition-group as optional peer dependency #2346
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
When using Yarn PnP with e.g. webpack it results in an error because
primereact
attempts to importreact-transition-group
, but does not declare it in its dependencies. Yarn PnP requires that a package explicitly declares all packages it uses.When it should not be a normal dependency, it needs to be declared as an optional peer dependency in the
package.json
:For reference, this is the kind of error yarn produces otherwise:
The text was updated successfully, but these errors were encountered: