Skip to content

Browser Console: [ECharts] There is a chart instance already initialized on the dom. #37

@robertgz

Description

@robertgz

Description

I am seeing a browser console messages when a component containing the EChart is rendered multiple times while the chart is initializing. I am not sure if this is an issue or if I need to change how I use the EChart component.

The console message I see when using Chrome is:
[ECharts] There is a chart instance already initialized on the dom.

Link to Reproduction

https://stackblitz.com/edit/stackblitz-starters-6kgmdx?file=app%2Fpage.tsx

Steps to reproduce

  1. Open the Stackblitz
  2. Click Open Preview in a new tab at the top right of stackblitz and click on Connect to Project in the new tab/window.
  3. Open the browser Console for the new tab/window.
  4. The tab/window with the Preview may need to be refreshed a few times to see the message in the browsers Console.

JS Framework

Next.js 13 (TS)

Version

1.2.0

Browser

Google Chrome 126

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

If the number used in setInterval is increased from 200 to 2000 the console message does not show.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions