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
Multiple warnings when using Nivo >= 0.85.0 line chart #2539
Multiple warnings when using Nivo >= 0.85.0 line chart #2539
Comments
I am having this same issue. Been troubleshooting since yesterday and not found a good fix. I'll stay tuned here. |
Resolved a series of prop type warnings encountered in the LineChart component due to compatibility issues with the latest version of @nivo/line. After identifying a similar issue reported by the community on GitHub (plouc/nivo#2539), we decided to downgrade @nivo/line to version 0.84.0.
^^ that's the likely cause. |
having the same isssues |
I can confirm that adding missing props solves the issue. |
Do you mean "adding all the optional props in the client code explicitly"? If so, that's not really a "solution" :) |
adding in all the props is the only way to get rid of the console warnings currently |
Or - drop back to the previous version until the bug is fixed 😝 That's what I've done. |
Damn... well... misery loves company and here we are <3 FML... I migrating from cra/craco to vite and updating all my libs in on shot was not ideal. This wasn't the only lib to break on update. Optimizely had to be downgraded and so did Playwright, both had regressions. Gonna go back on this one too. PR is already big enough. |
if you go back to the previous version you get back to get the "defaultProps" deprecated warning (depending on your version of react). |
what could I set as "tooltip" and "sliceTooltip" props to get rid of their warnings without affecting the behavior of the line chart component? |
* Update npm packages. * Update nivo npm packages. * Add description to CuratedSet search results. * Use description as the title of search results, and use the file_set_type if no description exists. * Fix the CuratedSet list-view Jest test. * Revert to older version of nivo charts because they still have a propTypes bug: plouc/nivo#2539
dude,i've resolve this problem by update nodejs to version 18.0.0 above, i use 18.2.0 now,and this function can render svg/canvas components normally |
it seems that nodejs 17 may trigger this multiple errors |
im using node js 21, still get the same console.log warnings |
Same. Can this be interpreted - no offense please - as "the devs do not really use this project themselves (anymore)"? Which can happen everywhere, but in that case, a deprecation warning on the front page would be nice, I guess. |
* Update npm packages. * Update nivo npm packages. * Add description to CuratedSet search results. * Use description as the title of search results, and use the file_set_type if no description exists. * Fix the CuratedSet list-view Jest test. * Revert to older version of nivo charts because they still have a propTypes bug: plouc/nivo#2539
… view (#470) * Update npm packages. * Update nivo npm packages. * Add description to CuratedSet search results. * Use description as the title of search results, and use the file_set_type if no description exists. * Fix the CuratedSet list-view Jest test. * Revert to older version of nivo charts because they still have a propTypes bug: plouc/nivo#2539
I'm also experiencing this with @nivo/line 0.85.1 - node V20.11. Downgrading to @nivo0.84.0 removed a ton of warnings, but introduced the |
Same issue |
The same issue here with node 20.11 & @nivo/line 0.85.1. |
As the project I'm working on uses TS I suppressed warnings using a hook:
It uses useEffect to ensure the warning is supresed in the client in case you're using server components. You can bring this hook into components that use Hopefully this is resolved soon, but if you take a look at nivo projects in github, you'll notice the intention to move Downgrading the react/node version is not a satisfactory solution, as warnings of "defaultProps" being deprecated might appear instead. In fact, the attempt to solve this deprecation warning is what triggered this even more annoying issue. |
Thanks for sharing that. We'll stick on 0.84 till something compelling makes us move, but that's handy to know. |
Unfortunately, 0.84 contains multiple high severity ReDoS vulnerabilities related to the d3-color dependency. |
Great news! Thanks! |
Describe/explain the bug
A bunch of warnings related to default props are thrown in the console after upgrading Nivo to v0.85.0 and using the line chart.
Example of warning :
To Reproduce
Sandbox : https://codesandbox.io/p/sandbox/nivo-line-chart-bottom-tick-values-forked-8dh6jx
Steps to reproduce the behavior:
Expected behavior
No warnings in the console because the related props are not required.
Screenshots
Desktop :
Additional context
This problem occurs after upgrading to v0.85.0, I didn't had the problem with previous versions.
The text was updated successfully, but these errors were encountered: