G6 icon indicating copy to clipboard operation
G6 copied to clipboard

Error: 'GridLayout' is not exported by node_modules/_@[email protected]@@antv/layout/lib/index.js, imported by node_modules/_@[email protected]@@antv/g6-pc/es/layout/index.js

Open feylee opened this issue 2 years ago • 4 comments

问题描述

image Error: 'GridLayout' is not exported by node_modules/@[email protected]@@antv/layout/lib/index.js, imported by node_modules/@[email protected]@@antv/g6-pc/es/layout/index.js

重现链接

重现步骤

本地构建失败 tnpm run build

预期行为

npm包更新为最新的版本,构建失败 使用指定的版本可构建成功 image

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

feylee avatar Mar 04 '22 06:03 feylee

同样问题,我还在打包的时候使用skipLibCheck也不行,请问问题解决了嘛

AlphaYoung111 avatar Jul 19 '22 06:07 AlphaYoung111

@Yanyan-Wang

GemT27 avatar Jul 26 '22 07:07 GemT27

同样问题,我还在打包的时候使用skipLibCheck也不行,请问问题解决了嘛

目前就在包里那个报错的index.js/ts 引入 from '@antv/layout/lib' -> 改成 from '@antv/layout'

GemT27 avatar Jul 26 '22 08:07 GemT27

将g6锁定版本未4.5.0好像就可以了

AlphaYoung111 avatar Jul 29 '22 01:07 AlphaYoung111