-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
React 18 Support #1964
Comments
Running into this problem too. Current workaround is to use Lines 83 to 87 in f83ad7b
|
How can I change the crosshair color? I only see it's black. It won't work for the dark mode sites. Thank you |
Is there anything preventing this over upgrading the dependency versions? |
Probably just some testing first to ensure that there aren't any breaking changes with 18. |
At least two of the things that are blocking are: |
Appears React 18 support has since been added to react-spring: pmndrs/react-spring#1875 Hopefully that gets us a bit closer |
I created https://github.com/plouc/nivo/pull/2008/files to bump peer dependencies, though I'm not sure if more work is needed to achieve React 18 compatibility but hopefully this moves things in the right direction. |
Has React 18 support arrived? |
I just tried --force installing it but then got "Invalid hook call" errors in the browser :( |
I'm also looking forward to React 18 support over here 👍🏻 |
@netbizltd I tried --froce as well and it works fine. i don't see why there would be invalid hook call errors, that sounds like something unrelated to nivo. I mean react 18 only adds concurrent mode, don't see why there would be any breaking changes unless you're using the new react 18 concurrent features with the charts specifically. React concurrent will only be enabled on branches where concurrent features are being used so theoretically it should be safe as long as your react component with nivo charts doesn't use the new react 18 features. React 18 was designed in mind so you could gradually upgrade your app to be concurrent where possible. That's one of the great things about it. or are people here just really looking forward to using new transitions and concurrency with nivo charts? |
Upgrading the whole repo to use React 18 isn't trivial, because storybook needs upgrading to a version that supports React 18. However, this requires replacing the deprecated However, as a first step, we could upgrade the constraints on the packages, but still use React 17 in the repository for things such as testing. |
This upgrades the package constraints, but does not update the version used for development in the repo (see plouc#1964 (comment)).
This upgrades the package constraints, but does not update the version used for development in the repo (see #1964 (comment)). Co-authored-by: Cameron Martin <cameronm@graphcore.ai>
have the same problem |
How about just creating a react 18 branch where you dump the storybooks? Then at a later time when upgrading becomes more manageable, you can bring addon info and knobs back in. Create a package called like nivo-react18-experimental |
Is there any update? |
A new release was created with the updated constraints. |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
bump |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you! |
The stale bot is broken? |
bump again? |
Still seeing this issue, please re-open |
Any update here? I'm getting an Package versions are: |
bump |
Same here |
Is this resolved for real now or just marked stale? |
any updates, for react18 support? |
I managed to find work around the problem by Here are the version Im using if anyone wants to try it out. Also it would be nice to know why yarn seems to be the issue. |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
Not stale |
I'm now using this library with react 18 with no problems and no need to use "legacy-peer-deps". The original issue seems to be resolved, so I'm closing this. |
To add context, I'm using pie and bar charts. If this issue needs to remain open for other chart types, I can reopen. |
I updated my project to:
I'm getting the following error when hovering over the ResponsiveLine graph: When I click on the error in the console to see where it comes from, it points to an error in the tooltip script: I'm using the nivo version:
Can you help me, please? |
Not working for me either, failing on @nivo/bar@0.79.1 |
Is your feature request related to a problem? Please describe.
I'd like to be able to use nivo with React 18 which was released on 3/29. Today, the nivo dependencies are such that React 18 causes errors like the following when running "npm update":
Describe the solution you'd like
I think bumping the React dependency should hopefully address this.
Describe alternatives you've considered
Running "npm update --force" seems to circumvent this problem for now.
Additional context
Thanks for all your work on this terrific library!
The text was updated successfully, but these errors were encountered: