Home Forums Chart Support canvasJs not working in new version Nextjs

canvasJs not working in new version Nextjs

Viewing 2 posts - 1 through 2 (of 2 total)
  • #60467

    I’m using Next.js version 15.0.2 and Node.js version 22.11.0. While trying to install @canvasjs/react-charts@1.0.2, I encountered an error. How can I fix that?

    npm error Found: react@19.0.0-rc-02c0e824-20241028
    npm error node_modules/react
    npm error react@”19.0.0-rc-02c0e824-20241028″ from the root project
    npm error
    npm error Could not resolve dependency:
    npm error peer react@”>=16.0.0″ from @canvasjs/react-charts@1.0.2
    npm error node_modules/@canvasjs/react-charts
    npm error @canvasjs/react-charts@”*” from the root project

    #60469

    @mahi_mso,

    CanvasJS React Charts seems to be working fine with the latest version of Next.js (v15.1.6) & React (v19.0.0GA). Please refer to this article for a tutorial on adding CanvasJS Chart in Next.js app.

    Can you kindly try updating all the packages to latest & check if that works? If the issue still persists, kindly create a sample project reproducing the issue, upload it to Google-Drive or Onedrive & share the link with us so that we can run it locally at our end, understand the scenario better and help you out?


    Vishwas R
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.