Skip to content

[Bug] AssistantCard: React does not recognize the createAt prop on a DOM element #4794

@lc-soft

Description

@lc-soft

📦 部署环境

Official Preview, Vercel

📌 软件版本

19da5e4

💻 系统环境

Ubuntu

🌐 浏览器

Chrome

🐛 问题描述

在开发环境中访问 /discover 页面时会提示错误,终端输出的错误如下:

card-createAt

在 AssistantCard 组件源码添加 console.log 打印 rest 内容:

image

浏览器控制台中能看到 rest 对象中有 createAt 属性:

card-creatAt-log

是否应该为 AssistantCardProps 添加 createAt 属性,然后使用 createdAt || createAt 获取创建时间?

📷 复现步骤

  1. pnpm dev
  2. 打开 http://localhost:3010/discover 页面

🚦 期望结果

无报错

📝 补充信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    InactiveNo response in 30 days | 超过 30 天未活跃🐛 BugSomething isn't working | 缺陷

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions