Closed YongFaGitHub closed 1 year ago
pnpm i
cd G6VP/packages/gi-site
npm run build
即可得到 G6VP 站点的静态文件
系统是win10 node是v16.18.0 npm是@8.19.2 运行build命令报错 https://pic.imgdb.cn/item/64d0b9f61ddac507cc243e1e.png
@YongFaGitHub 看起来像是 lock文件的问题,检查下是否是master最新代码
代码已更新最新版本执行报错如下 `D:\work\g6vp2\G6VP\packages\gi-site>npm run build
@antv/gi-site@2.2.0 prebuild node scripts/link.mjs && node --experimental-json-modules scripts/pre-build.mjs
使用示例: pnpm run link
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@antv/gi-sdk' imported from D:\work\g6vp2\G6VP\packages\gi-site\scripts\pre-build.mjs
at new NodeError (node:internal/errors:387:5)
at packageResolve (node:internal/modules/esm/resolve:852:9)
at moduleResolve (node:internal/modules/esm/resolve:901:20)
at defaultResolve (node:internal/modules/esm/resolve:1115:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:837:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ModuleWrap.
使用Linux系统成功打包编译前端页面代码了,
@YongFaGitHub 那应该就是 win 的环境问题。如果觉得 G6VP 对你的业务项目有帮助,还望点个star支持下
G6VP这个项目怎么进行私有化部署,有没有教程怎么部署