Skip to content

Circular dependency detected in BarStack #6776

Description

@jkr2255

What is the current behavior?

Output from Vite 7.3.0 (esbuild 0.27.1)

Export "Bar" of module "node_modules/recharts/es6/cartesian/Bar.js" was reexported through module "node_modules/recharts/es6/index.js" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.

What is the expected behavior?

No warning happened

Which versions of Recharts, and which browser / OS are affected by this issue? Did this work in previous versions of Recharts?

recharts 3.6.0 (not happened in 3.5.1)

Analysys from source code

cartesian/BarStack.tsx refers index in this line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions