antvis / G6VP

G6VP is an online visual analysis tool for graphs and a low-code platform for building graph applications.
https://insight.antv.antgroup.com
Apache License 2.0
812 stars 110 forks source link

HELP:联调开发方案遇到的问题 #378

Open tyn1998 opened 1 year ago

tyn1998 commented 1 year ago

大家好,正在尝试 #354 提出的联调开发方案。目前遇到的问题如下,我尽量把我的操作顺序和遇到的问题描述清楚。

1、 pnpm run link path/to/gi-assets-xlab GI_ASSETS_XLAB阶段报错

image

根据提示尝试过在G6VP项目根目录pnpm i,的确有错误:

image

再根据错误提示,在gi-assets-xlab的 https://github.com/X-lab2017/gi-assets-xlab/commit/73552cf9058b9dc2410c3af15e217c98a6a1219 (在该commit下但是把package-lock.json删掉了 )下运行pnpm run build:es报错如下:

image

2、我想着先忽略上面的错误,于是开始尝试pnpm run start跑项目,遇错。

image

看上去是--experimental-json-modules问题,在npm script的“start”中加上了这个flag:

image

又尝试pnpm run start,换了个报错如下:

image
Aarebecca commented 1 year ago

看起来像是项目代码的问题,检查下类型问题呢

tyn1998 commented 1 year ago

@Aarebecca

可能是依赖问题。我在还原gi-assets-xlab到最新的main分支后(联调会改写package.json)用npm装依赖然后build是成功的,之前一直是npm跑的,因为脚手架README是这么写的。

Aarebecca commented 1 year ago

xlab build 的具体命令是什么

tyn1998 commented 1 year ago

@Aarebecca

就是按照脚手架里的README来的:https://github.com/X-lab2017/gi-assets-xlab