Skip to content

V5版本使用官方示例出现报错 #6301

Answered by resetsix
recursively asked this question in Q&A
Discussion options

You must be logged in to vote

官网Force Atlas 2示例(正常):https://g6-next.antv.antgroup.com/zh/examples/layout/force-directed/#atlas2

我在(antv/g6 v5.0.20)本地使用force-atlas2布局也没任何 warning信息。

排查思路:

1、重装依赖。

## 使用 npm 重新安装 @antv/g6
npm uninstall @antv/g6
npm install @antv/g6

## 使用 yarn 重新安装 @antv/g6
yarn remove @antv/g6
yarn add @antv/g6

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@recursively
Comment options

Comment options

You must be logged in to vote
1 reply
@recursively
Comment options

Answer selected by recursively
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants