plouc / nivo

nivo provides a rich set of dataviz components, built on top of the awesome d3 and React libraries
https://nivo.rocks
MIT License
13.08k stars 1.02k forks source link

Charts based on react-spring@9.0.0-rc.3 have prod issue #1453

Closed IvanGusak closed 3 years ago

IvanGusak commented 3 years ago

Describe/explain the bug All charts that are using react-spring@9.0.0-rc.3 throws error on the production Uncaught TypeError: r.willAdvance is not a function

To Reproduce @nivo/line@0.67.0, @nivo/core@0.67.0

Steps to reproduce the behavior:

  1. Reload the page with the chart
  2. Open dev tools
  3. See an error

Desktop:

Additional context I hope this information will help you to resolve the issue. Thank you for your time.

stephanoshadjipetrou commented 3 years ago

Just experienced the same issue and checked in react-spring repo issues to see if something similar has been reported. As it turns out, yes - issue

But haven't tried any of the solutions mentioned there. Hopefully someone here has any insights on how to solve this :)

stephanoshadjipetrou commented 3 years ago

Edit: managed to solve this with the help of this comment