2.1.0 installs multiple versions of React
See original GitHub issue> npm install
...
> npm ls react
react-color@2.1.0 /home/brad/Projects/casesandberg/react-color
├── react@15.0.2
├─┬ react-context@0.0.3
│ └── react@0.13.3
└─┬ reactcss@0.4.5
└── react@0.14.8
This is a minor issue, but one that we’ve found can bloat our build size if we’re not careful.
Repros on a fresh pull of master at f603122813b82eedfa45f04c86fb7f695c2e9b6f although interactions with external dependencies also influence the repro.
I’m less concerned about react-context
because it’s listed in devDependencies
and therefore only affects development of this package. However, reactcss
is listed in dependencies
and therefore gets installed by consumers of react-color
- thus, consumers of react-color
are also installing multiple versions of React at the moment.
The resolution is not a change in this repo, but it seems to impact react-color the most which is why I’m reporting it here. reactcss/master supports React 15 as of https://github.com/casesandberg/reactcss/pull/52, but a new version of the package has not yet been released. Once a new minor/patch version of reactcss is on npm, thanks to the ^0.4.3
rule consumers of react-color
will no longer be installing two versions of React.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top GitHub Comments
For anyone interested, here’s our temporary workaround by depending on our own fork until updated
reactcss
gets published.The fix is live
react-color@2.2.3