G6 icon indicating copy to clipboard operation
G6 copied to clipboard

G64.6.4在编译运行时,控制台打印依赖解析错误

Open zmbxy opened this issue 2 years ago • 7 comments

问题描述

使用create-react-app5.0.1创建的项目,在编译运行时会出现依赖包解析错误的告警输出

重现链接

''

重现步骤

预期行为

能在mac m1下正常运行

平台

  • 操作系统: [macOS M1]
  • G6 版本: [4.6.4]
  • react: [18.0.1]

屏幕截图或视频(可选)

image

image

补充说明(可选)

No response

zmbxy avatar May 20 '22 02:05 zmbxy

使用create-react-app 5.0.1创建项目,在windows下和mac下都有这个问题。

zmbxy avatar May 20 '22 08:05 zmbxy

看起来是 graphin 报出来的?在 graphin 仓库提下 issue 呢?

Yanyan-Wang avatar Jun 16 '22 04:06 Yanyan-Wang

我是用create-react-app创建的项目,没有引入graphin,就是G6。 在开启生成source map的情况,目前看是必定出现的,关闭source map就没有事情了。

zmbxy avatar Jun 17 '22 08:06 zmbxy

好像是少了 dagre-compound 这个布局,检查一下安装的 @antv/layout 包是不是最新的

Yanyan-Wang avatar Jun 23 '22 05:06 Yanyan-Wang

依赖里面看着好像没什么问题,@antv/layout是0,2,4的,依赖的dagre-compound是0.0.11版本的

zmbxy avatar Jun 23 '22 10:06 zmbxy

感觉是生成 source map 的时候,没有引用到最新的 @antv/layout

Yanyan-Wang avatar Jun 28 '22 03:06 Yanyan-Wang

请问楼主这个问题解决了吗?遇到了相同问题

wsh085 avatar Aug 19 '22 07:08 wsh085

Im having the same issue, any help?

RHeynsZa avatar Dec 12 '22 10:12 RHeynsZa

有解决办法吗,这个问题还是存在

matianxiang avatar Apr 28 '23 08:04 matianxiang