You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
我的一个项目中同时使用了antd, @antv/g6, @antv/x6
使用vite分包后控制台报错. 一个一个排除后, 发现项目中仅存在@antv/g6的引用时依旧报错. 其余两个包可以单独拆分构建.
当我把react, react-dom, @AntV打包在一个chunk时, 不会报错.
当我把react, react-dom单独打包, @AntV单独打包时, 控制台报错.
当我把react, react-dom单独打包, @antv/g6单独打包时, @AntV会被打进main chunk中, 此时不会报错.
react: 18.3.1
react-dom: 18.3.1
@antv/g6: 5.0.50
以下是控制台错误:

Beta Was this translation helpful? Give feedback.
All reactions