Line Chart Breaking with NextJS after upgrading to 0.65.1
See original GitHub issueDescribe/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
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Upgrade Guide - Next.js
The minimum Node.js version has been bumped from 12.22.0 to 14.0.0, since 12.x has reached end-of-life. The minimum React ...
Read more >Blog - Next.js 13
Next.js 13 introduces layouts, React Server Components, and streaming in the app directory, as well as Turbopack, an improved image ...
Read more >Blog - Next.js 13.1
Next.js 13.1 introduces improvements to the app directory, built-in module transpilation, stable edge runtime for API Routes, and many ...
Read more >Blog - Next.js 12.2
Middleware (Stable): Dynamic routing for your entire application. · On-Demand ISR (Stable): Update content without redeploying. · Edge API Routes ...
Read more >Blog - Next.js 12.3
This works when running next dev and next build . Video showing Next.js auto-installing TypeScript. Improved Fast Refresh.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@p45mark @plouc
I found an additional solution to work with Next 10.0.3 and the most recent Nivo release (^0.67.0). It will work for any folks who are having trouble running your provided prebuild script in their environments. You can fix the
TypeError: r.willAdvance is not a function
issue by adding this webpack config function to your next.config.js file:@p45mark we also have this issue and we fixed it by using this script, it should be run prior to build.