-
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
(vue3+vite+x6+x6-vue-shape)项目build后,访问时报 TypeError: l.createSvgDocument is not a function #2912
Comments
👋 @Trubasa 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. |
使用html渲染节点的时候,build后也会报该问题
|
破案了,是因为引入了x6-vue-shape导致,vue3引入x6-vue-shape后,在dev下还需要配置别名才可正常使用,而这个别名在build的时候会导致打包内容异常。
|
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Describe the bug
环境版本如下
使用vue编写的组件,作为节点渲染的渲染的内容
渲染的组件:
注册这个组件到x6
dev环境中中,改组件正确渲染
但是到build之后进行访问,会报如下问题
Your Example Website or App
null
Steps to Reproduce the Bug or Issue
Expected behavior
正常情况应该不报错,跟dev环境表现一致。
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: