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.7.16 vue-demi0.14.6的版本下x6-vue-shape会报warn错误 #4583

Open
marina1993 opened this issue Feb 26, 2025 · 2 comments
Open

vue2.7.16 vue-demi0.14.6的版本下x6-vue-shape会报warn错误 #4583

marina1993 opened this issue Feb 26, 2025 · 2 comments

Comments

@marina1993
Copy link

问题描述

permission.js:234 TypeError: Cannot read properties of undefined (reading 'warn')
at ./node_modules/vue-demi/lib/index.mjs (src_pages_ibf-home_test_vue.js:7077:1)
at webpack_require (index.js:93:32)
at fn (index.js:755:21)
at ./node_modules/@antv/x6-vue-shape/es/view.js (src_pages_ibf-home_test_vue.js:73:1)
at webpack_require (index.js:93:32)
at fn (index.js:755:21)
at ./node_modules/@antv/x6-vue-shape/es/index.js (src_pages_ibf-home_test_vue.js:29:1)

重现链接

暂无

重现步骤

初始化直接报错

预期行为

期望正常渲染组件

平台

  • 操作系统: [window10]
  • 网页浏览器: [Google Chrome]
  • X6 版本: [2.18.1]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Feb 26, 2025

👋 @marina1993

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.

@marina1993
Copy link
Author

👋 @marina1993

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.

// // 注册自定义节点
// Graph.registerNode(
// "custom-node",
// {
// inherit: "vue-shape",
// component: {
// template: <CustomNode :label="label" @edit="onEdit" @delete="onDelete" @add="onAdd" />,
// components: {
// CustomNode,
// },
// methods: {
// onEdit() {
// this.$emit("edit");
// },
// onDelete() {
// this.$emit("delete");
// },
// onAdd() {
// this.$emit("add");
// },
// },
// },
// ports: {
// groups: {
// top: {
// position: "top",
// attrs: {
// circle: {
// r: 4,
// magnet: true,
// stroke: "#5F95FF",
// strokeWidth: 1,
// fill: "#fff",
// },
// },
// },
// bottom: {
// position: "bottom",
// attrs: {
// circle: {
// r: 4,
// magnet: true,
// stroke: "#5F95FF",
// strokeWidth: 1,
// fill: "#fff",
// },
// },
// },
// },
// },
// },
// true,
// );
此段代码导致的报错

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