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

官网demo的JS代码执行报错 #615

Open
liumengniu opened this issue Mar 18, 2025 · 3 comments
Open

官网demo的JS代码执行报错 #615

liumengniu opened this issue Mar 18, 2025 · 3 comments
Labels
bug Something isn't working question Further information is requested

Comments

@liumengniu
Copy link

重现步骤

在线示例链接:(必填)https://ant-design-x.antgroup.com/docs/playground/independent-cn

步骤:
1.复制官网链接demo的JS版
2.运行起来,不用改代码
3.点击“New Conversation”,报错【ResizeObserver loop completed with undelivered notifications.
at handleError (http://localhost:1718/static/js/second.bundle.js:106203:58)
at http://localhost:1718/static/js/second.bundle.js:106222:7】

当前行为

在线示例链接:(必填)https://ant-design-x.antgroup.com/docs/playground/independent-cn

步骤:
1.复制官网链接demo的JS版
2.运行起来,不用改代码
3.点击“New Conversation”,报错【ResizeObserver loop completed with undelivered notifications.
at handleError (http://localhost:1718/static/js/second.bundle.js:106203:58)
at http://localhost:1718/static/js/second.bundle.js:106222:7】

预期行为

No response

上下文

react版本18.2.0
electron版本31.2.1

版本

1.0.6

您在哪些浏览器上遇到了这个问题?

Chrome

@liumengniu liumengniu added the bug Something isn't working label Mar 18, 2025
Copy link

目前没有找到与您遇到的问题相关的其他报告。您提到的错误可能是一个新的问题。

为了帮助解决这个问题,您可以尝试以下步骤:

  1. 确保您使用的是最新版本的浏览器和相关库。
  2. 检查是否有任何自定义代码可能影响了ResizeObserver的行为。
  3. 尝试在不同的环境中运行代码,以确定问题是否与特定的浏览器或操作系统有关。

如果问题仍然存在,建议您在GitHub上提交一个详细的错误报告,包括重现步骤和环境信息,以便开发团队能够更好地调查和解决问题。

如果您需要进一步的帮助,请随时告诉我。

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

@liumengniu
Copy link
Author

经过试验,同样的demo(JS)代码,不改一行,点击“New Conversation”, V1.0.5不会报错,应该是 1.0.6搞上去的BUG

@kimteayon
Copy link
Collaborator

kimteayon commented Mar 18, 2025

您好 是否可以提供您的环境codesandbox,我这边创建了一个看上去没有问题:
codesandbox

同时我的依赖如下可以进行参考:

  "dependencies": {
    "loader-utils": "3.2.1",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "@ant-design/x": "1.0.6",
    "react-scripts": "5.0.1",
    "antd-style": "^3.6.3",
    "@ant-design/icons": "^5.4.0",
    "antd": "5.24.3"
  },
  "devDependencies": {
    "@types/react": "18.2.38",
    "@types/react-dom": "18.2.15",
    "typescript": "4.4.4"
  }

@kimteayon kimteayon added invalid This doesn't seem right question Further information is requested and removed invalid This doesn't seem right labels Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants