X6 icon indicating copy to clipboard operation
X6 copied to clipboard

XFlow 1.x对应的X6版本

Open JerryLu991223 opened this issue 1 year ago • 1 comments

问题描述

目前因为XFlow2.0没有dag demo,还是想用旧版本。 请问有没有推荐的XFlow和X6版本?

目前https://xflow.antv.vision/zh-CN/docs/tutorial/solutions/dag,这个链接的demo在XFlow 1.0.51和X6 2.18.1有各种报错。

重现链接

https://xflow.antv.vision/zh-CN/docs/tutorial/solutions/dag里的layout demo

重现步骤

直接报各种错,例如:

  1. 模块“"@antv/x6"”没有导出的成员“ObjectExt”。ts(2305)

  2. [plugin:vite:esbuild] Transform failed with 1 error: /home/zhenghao-lu/workspace/weevaluation/frontend/src/pages/DataProcess/Workflow/config-toolbar.tsx:185:11: ERROR: Cannot use "this" here: /home/zhenghao-lu/workspace/weevaluation/frontend/src/pages/DataProcess/Workflow/config-toolbar.tsx:188:27 Cannot use "this" here: 183| lineNumber: 182, 184| columnNumber: 11 185| }, this); | ^ 186| } 187| }); at failureErrorWithLog (/home/zhenghao-lu/workspace/weevaluation/frontend/node_modules/esbuild/lib/main.js:1650:15) at /home/zhenghao-lu/workspace/weevaluation/frontend/node_modules/esbuild/lib/main.js:848:29 at responseCallbacks. (/home/zhenghao-lu/workspace/weevaluation/frontend/node_modules/esbuild/lib/main.js:703:9) at handleIncomingPacket (/home/zhenghao-lu/workspace/weevaluation/frontend/node_modules/esbuild/lib/main.js:763:9) at Socket.readFromStdout (/home/zhenghao-lu/workspace/weevaluation/frontend/node_modules/esbuild/lib/main.js:679:7) at Socket.emit (node:events:518:28) at Socket.emit (node:domain:489:12) at addChunk (node:internal/streams/readable:561:12) at readableAddChunkPushByteMode (node:internal/streams/readable:512:3) at Readable.push (node:internal/streams/readable:392:5) at Pipe.onStreamRead (node:internal/stream_base_commons:191:23

预期行为

能和docs一样渲染

平台

  • 操作系统: [Ubuntu 20.04]
  • 网页浏览器: [Google Chrome]
  • X6 版本: [2.11.1 ...]

屏幕截图或视频(可选)

No response

补充说明(可选)

应该就是版本问题,代码没改动

JerryLu991223 avatar Jan 22 '25 07:01 JerryLu991223

👋 @JerryLu991223

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

x6-bot[bot] avatar Jan 22 '25 07:01 x6-bot[bot]

XFlow 后续会逐步不维护,对于长期迭代和维护的业务产品,建议升级到 X6 2.x 版本。

hustcc avatar Aug 13 '25 06:08 hustcc