Skip to content
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

vue2框架,使用@antv/x6-vue-shape和vue-demi遇到的问题和解决方案 #4386

Closed
tianshaochuan opened this issue Aug 12, 2024 · 1 comment

Comments

@tianshaochuan
Copy link

问题描述

在使用中可能会出现TypeError: Object(...) is not a function的问题和createApp()is not funciton的问题。其实归根结底是一个问题。并且尝试使用vue-demi-switch 2解决,但是解决不了。

重现链接

重现步骤

预期行为

解决此类的问题。

平台

  • 操作系统: [macOS]
  • 网页浏览器: [Google Chrome]
  • X6 版本: [1.34.13 ...]

屏幕截图或视频(可选)

image image

补充说明(可选)

这个问题困扰了好多天,一直在研究,每次新安装依赖就会出现此类问题,导致地图上的节点出不来,但是连线能出来就很奇怪,证明我得节点是有的,是语法错了!
点进错误一看呢想着他为什么会走vue3呢,已经用vue-demi-switch 2解决了啊,为什么会出现这种情况,然后找到依赖,好家伙!他没走公共的vue-demi,走的自己依赖包下自己又给自己安装了一个vue-demi,真是服了!那肯定vue-demi-switch 2这个就不管用了!
image
找到node_modules下的@antv/x6-vue-shape下的node_modules删掉,重启项目,完美解决!!!

@x6-bot
Copy link
Contributor

x6-bot bot commented Aug 12, 2024

👋 @tianshaochuan

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant