Open tyn1998 opened 1 year ago
看起来像是项目代码的问题,检查下类型问题呢
@Aarebecca
可能是依赖问题。我在还原gi-assets-xlab到最新的main分支后(联调会改写package.json)用npm装依赖然后build是成功的,之前一直是npm跑的,因为脚手架README是这么写的。
xlab build 的具体命令是什么
@Aarebecca
就是按照脚手架里的README来的:https://github.com/X-lab2017/gi-assets-xlab
大家好,正在尝试 #354 提出的联调开发方案。目前遇到的问题如下,我尽量把我的操作顺序和遇到的问题描述清楚。
1、
pnpm run link path/to/gi-assets-xlab GI_ASSETS_XLAB
阶段报错根据提示尝试过在G6VP项目根目录
pnpm i
,的确有错误:再根据错误提示,在gi-assets-xlab的 https://github.com/X-lab2017/gi-assets-xlab/commit/73552cf9058b9dc2410c3af15e217c98a6a1219 (在该commit下但是把package-lock.json删掉了 )下运行
pnpm run build:es
报错如下:2、我想着先忽略上面的错误,于是开始尝试
pnpm run start
跑项目,遇错。看上去是
--experimental-json-modules
问题,在npm script的“start”中加上了这个flag:又尝试
pnpm run start
,换了个报错如下: