Nivo: Line Chart Breaking with NextJS after upgrading to 0.65.1

Created on 17 Nov 2020  路  3Comments  路  Source: plouc/nivo

Describe/explain the bug
The lines on my ResponsiveLine component are messed up after upgrading to version 0.65.1. Just to make sure, I downgraded to 0.64.0 and the ResponsiveLine components looked great again.

Console Error with static site hosted locally or on Vercel

TypeError: r.willAdvance is not a function

To Reproduce
The easiest way is to clone the repo below and try running yarn prod with each version of @nivo/line and you'll see the problems with 0.65.1 locally. I also have this hosted on Vercel (with version 0.65.1).

Broken version hosted on Vercel
Github Repo
image

Thanks!

bug

Most helpful comment

@p45mark we also have this issue and we fixed it by using this script, it should be run prior to build.

All 3 comments

We switched to react-spring v9 and it is an issue there. We won't be able to fix it until they release a new version. There are some workarounds you can try in your project. https://github.com/pmndrs/react-spring/issues/1078

@p45mark we also have this issue and we fixed it by using this script, it should be run prior to build.

That fixed it for now, thank you both!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cedmax picture cedmax  路  4Comments

dubzzz picture dubzzz  路  3Comments

gcloeval picture gcloeval  路  3Comments

stahlmanDesign picture stahlmanDesign  路  3Comments

barnapisti1994 picture barnapisti1994  路  3Comments