question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Line Chart Breaking with NextJS after upgrading to 0.65.1

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

36reactions
wmcb91commented, Dec 29, 2020

@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:

module.exports = {
  ...
  webpack: config => {
    config.module.rules.push({
      test: /react-spring/,
      sideEffects: true,
    })

    return config
  },
}
11reactions
plouccommented, Nov 17, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found