vue3 AntV-X6 引入插件报错
vue3 AntV-X6 引入插件报错:
Uncaught TypeError: Cannot read properties of undefined (reading 'ToolItem')
vite 引入路径的问题解决就是在引入插件的路径后面加上/lib:
import { Keyboard } from '@antv/x6-plugin-keyboard/lib'
直接写 import { Keyboard } from '@antv/x6-plugin-keyboard' 就会报错