-
Notifications
You must be signed in to change notification settings - Fork 836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support React 17 #1356
Comments
Looks like it does not remove these methods after all! Postponed to React 18+. |
Ya, so react-vis/packages/react-vis/package.json Line 89 in cce5980
|
Hi, I can't seem to install react-vis in a create-react-app project with React 17. Here's the npm error log, hope that helps! npm ERR! code ERESOLVE |
Now that npm has overrides, I wonder if that could be used as a workaround in this case since this library is unmaintained? https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides e.g. "overrides": {
"react": "^17.0.0" |
Yes it could. I'm happily using react-vis with React 17 in production on a large scale commercial application with zero complaints. Hell, preparing to upgrade to React 18 as soon as it gets released, with RC being evaluated right now, and everything still works just fine. |
@wojtekmaj Since npm overrides were just added, how are you using react-vis with React 17? Seems like I wasn't even able to upgrade React with react-vis as a dependency. Are you using a different package manager? |
I'm using Yarn, but you can skip peer deps check in NPM with a flag, too. |
@wojtekmaj Ah ok. I think the new npm overrides feature is probably better for something like this since it can be configured in package.json without having to use any special flags every time (which I would probably forget). But it's always good to have options. Thanks! |
@bulyonov Would it be possible for you to address this issue? |
Bumping this again, would be extremely useful to support React 17 or 18 |
We have been using React 17 for a while with |
React 17 adds support for async rendering which will need some testing and tweaking to properly support.
It explicitly removes support for various lifecycle methods on class components:
and moves to use the new ones
These new methods, and the deprecation warnings were added back in 16.3.
Do do have a couple places that I believe are still using the old methods, although there was a pass to remove them.
The text was updated successfully, but these errors were encountered: