Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

G2与低版本g6共存报错 #3608

Closed
Malcn opened this issue Sep 7, 2021 · 1 comment
Closed

G2与低版本g6共存报错 #3608

Malcn opened this issue Sep 7, 2021 · 1 comment

Comments

@Malcn
Copy link

Malcn commented Sep 7, 2021

前置条件:使用npm i 安装

"@antv/g2": "4.1.25",
"@antv/g6": "3.2.0",

同时使用报错

@hustcc
Copy link
Member

hustcc commented Sep 8, 2021

应该是 底层 G 版本不一致。有一个解决办法,就是 import { } from '@antv/g6/dist/g6.min.js' 直接引入打包之后的文件,这样可以避免包冲突。

@hustcc hustcc closed this as completed Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants