-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property 'ToolItem' of undefined #1181
Comments
👋 @aov2005 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. |
是否使用 vite,如果是的话有一个相关 issue 以及绕开的办法:vitejs/vite#3413 |
package.json "resolutions": {
"vite": "2.2.4"
}, |
为什么不在 X6 的代码里修复呢?这里的 namespace 不是 ES 的标准,所以导致用 ES modules 的方式 import ToolItem 时报错了。 |
直接引用构建好的就好了 |
This issue still exist in vite(vitejs/vite#3413) and need to be fixed. |
目前这个问题还是有 的亏来搜了issue |
需要继承button实现,这个办法会导致 |
现在这个报错有解决方案或者替换方案了吗
目前临时的解决办法就是不使用 define 而使用解构语法 + 基础属性替代继承,然后强行在 attrs 里塞了个 type 进行判断,除了 remove(name) 不太方便其他都还行 |
Expected Behavior
可以正常使用vue节点
Current Behavior
单独使用x6的时候没这个报错,引用x6-vue-shape的时候报这个错了
Possible Solution
Steps To Reproduce
Error Message & Stack Trace
Additional Context
Your Environment
The text was updated successfully, but these errors were encountered: