react-codemirror2
react-codemirror2 copied to clipboard
Cannot upgrade react to 17 thanks to npm complaining that react-codemirror2 supports react 16 only
Hi!
I can see that react version in this repo is correct (up to 17.x), but for some reason my npm complains that it's only up to 16.x. Any idea what went wrong? I've tried cleaning my npm cache, but it didn't help (I didn't expect it will anyway). Might it be that current version published in npm has an outdated package.json?
Thanks!
The latest release (https://github.com/scniro/react-codemirror2/tree/7.1.0) has the following in the package.json file :
https://github.com/scniro/react-codemirror2/blob/cc3a47d0707b060bf1a1e42ccb258b9b7c0882fd/package.json#L56
I think the reason is that npm is reading the peer dependancy of 16.x and enforcing that. Latest version on npm seems to be 7.2.1 and that also has the same 16.x upper restriction.
The latest release (https://github.com/scniro/react-codemirror2/tree/7.1.0) has the following in the package.json file :
https://github.com/scniro/react-codemirror2/blob/cc3a47d0707b060bf1a1e42ccb258b9b7c0882fd/package.json#L56
I think the reason is that npm is reading the peer dependancy of 16.x and enforcing that. Latest version on npm seems to be 7.2.1 and that also has the same 16.x upper restriction.
i see that last release was back on 2020. Any word on when is the next one?
ping
@elsigh @ihollander @fongandrew @anandsainath @scniro ping
Same for React 18
Ended up copying index.tsx to the project :(
React 17 support was added under #224, which was published in [email protected]
. Super work!