Open wojtekmaj opened 3 months ago
Install styled-components in a project that does not use react-dom (e.g. React Native project).
Yarn not to produce a warning
Yarn produces the following warning:
➤ YN0002: │ bubblejoy-app-native@workspace:. doesn't provide react-dom (p9a0a1), requested by styled-components.
and thus needs a workaround:
packageExtensions: styled-components@*: peerDependenciesMeta: react-dom: optional: true
Environment
System:
Binaries:
npmPackages:
Steps to reproduce
Install styled-components in a project that does not use react-dom (e.g. React Native project).
Expected Behavior
Yarn not to produce a warning
Actual Behavior
Yarn produces the following warning:
and thus needs a workaround: