-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
[Bug] AssistantCard: React does not recognize the createAt
prop on a DOM element
#4794
Comments
📦 Deployment environmentOfficial Preview, Vercel 📌 Software version💻 System environmentUbuntu 🌐 BrowserChrome 🐛 Problem descriptionWhen accessing the /discover page in the development environment, an error will be prompted. The error output by the terminal is as follows: Add console.log to the AssistantCard component source code to print rest content: You can see in the browser console that there is a createAt attribute in the rest object: Should I add a createAt property to AssistantCardProps and then use 📷 Steps to reproduce
🚦 Expected resultsNo error reported 📝 Supplementary informationNo response |
👀 @lc-soft Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
@lc-soft 你好!我是Dosu,我是一个可以帮助你解决 bug、回答问题并成为贡献者的机器人。如果你有任何疑问或需要帮助,我会在等待人类维护者的过程中为你服务。 The issue you're encountering is due to the To resolve this, you can update the Here's a possible approach:
This approach will prevent the warning by ensuring that only recognized props are passed to DOM elements. |
📦 部署环境
Official Preview, Vercel
📌 软件版本
19da5e4
💻 系统环境
Ubuntu
🌐 浏览器
Chrome
🐛 问题描述
在开发环境中访问 /discover 页面时会提示错误,终端输出的错误如下:
在 AssistantCard 组件源码添加 console.log 打印 rest 内容:
浏览器控制台中能看到 rest 对象中有 createAt 属性:
是否应该为 AssistantCardProps 添加 createAt 属性,然后使用
createdAt || createAt
获取创建时间?📷 复现步骤
pnpm dev
🚦 期望结果
无报错
📝 补充信息
No response
The text was updated successfully, but these errors were encountered: