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

error throws when add a tabs component #11142

Open
cainiaokan opened this issue Oct 31, 2024 · 2 comments
Open

error throws when add a tabs component #11142

cainiaokan opened this issue Oct 31, 2024 · 2 comments

Comments

@cainiaokan
Copy link

描述问题:

error throws when add a tabs component

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'type')

截图或视频:

image

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的?
    amis-editor

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    6.8.0

  3. 粘贴有问题的完整 amis schema 代码:

{
  "type": "tabs",
  "tabs": [
    {
      "title": "选项卡1",
      "body": [],
      "id": "u:092f1ccaa2bc"
    },
    {
      "title": "选项卡2",
      "body": []
    }
  ],
  "mountOnEnter": true
}
  1. 操作步骤
    add a tabs component in an empty page
@cainiaokan
Copy link
Author

this bug also occurs in amis 6.7.0 but not 6.6.0 hence we can presume it was introduced in 6.7.0

@yuhonyon
Copy link

yuhonyon commented Nov 14, 2024

我也遇到了, 但是我是6.8.0没问题, 升级6.9.0后报错了
image

也可能之前6.8.0也有 只是6.9.0加了报错浮层才注意到
image

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

No branches or pull requests

2 participants