X6 icon indicating copy to clipboard operation
X6 copied to clipboard

antV X6构建报错

Open yh1010 opened this issue 1 year ago • 1 comments

Describe the bug

Error: require() of ES Module /Users/Desktop/switch/client/node_modules/[email protected]@lodash-es/lodash.js from /Users/Desktop/switch/client/node_modules/@[email protected]@@antv/x6-common/lib/function/function.js not supported. Instead change the require of lodash.js in /Users/Desktop/switch/client/node_modules/_@[email protected]@@antv/x6-common/lib/function/function.js to a dynamic import() which is available in all CommonJS modules.

Your Example Website or App

内部网站

Steps to Reproduce the Bug or Issue

  1. 使用的版本是 "antv": "^0.2.2", "@antv/hierarchy": "^0.6.11", "@antv/x6": "^2.17.1", "@antv/x6-react-shape": "^2.2.2",

Expected behavior

我想问下这种该如何处理呢

Screenshots or Videos

No response

Platform

  • OS: [macOS]
  • Browser: [Chrome]

Additional context

No response

yh1010 avatar Jan 18 '24 12:01 yh1010

👋 @yh1010

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 18 '24 12:01 x6-bot[bot]