Skip to content

[docs]: Custom FlowDirectionGraph CodeSandbox example is brokenย #3027

@superr-fluous

Description

@superr-fluous

๐Ÿ“ Which page are you reading?

https://ant-design-charts.antgroup.com/en/examples/relations/flow-direction-graph/#custom

๐Ÿ’ญ What's on your mind?

Example needs fixing / ็คบไพ‹้œ€่ฆไฟฎๅค

๐Ÿค” Tell us more

If you follow the link to CodeSandbox example, the sandbox is broken due to createRoot is not a function error because of wrong import:

import { createRoot } from 'react-dom';
// should be
import { createRoot } from 'react-dom/client';

After updating the import, the example is still not working with error: EventEmitter is not a constructor.

Image

You can view the update sandbox at https://codesandbox.io/p/sandbox/green-currying-m5f6x5

๐Ÿ’ก Got any suggestions?

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions