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

在ts中导入@antv/g6 v5时报错 #5772

Closed
whl1207 opened this issue May 25, 2024 · 1 comment
Closed

在ts中导入@antv/g6 v5时报错 #5772

whl1207 opened this issue May 25, 2024 · 1 comment

Comments

@whl1207
Copy link

whl1207 commented May 25, 2024

问题描述

代码为:
import { Graph } from '@antv/g6';
错误提示为:
模块 ""@antv/g6"" 没有导出的成员 "Graph"。你是想改用 "import Graph from "@antv/g6"" 吗?ts(2614)

重现链接

重现步骤

代码为:
import { Graph } from '@antv/g6';
错误提示为:
模块 ""@antv/g6"" 没有导出的成员 "Graph"。你是想改用 "import Graph from "@antv/g6"" 吗?ts(2614)

预期行为

ts不报错

平台

  • 操作系统: [Windows]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [5.0.0]
  • electron无法打包

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@Aarebecca
Copy link
Contributor

检查一下 node_modules 中的实际安装版本呢

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