ant-design/pro-chat

🧐[问题] properties of null (reading 'useContext')

Aperta

#194 aperta il 8 mag 2024

 (6 commenti) (0 reazioni) (0 assegnatari)TypeScript (117 fork)github user discovery
help wanted

Metriche repository

Star
 (899 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

🧐 问题描述

自定义Actions中的按钮引入antd的Button/图标,会报错: image

💻 示例代码

`

      const mockResponse = new MockResponse(mockedData);

      return mockResponse.getResponse();
    }}
  />
</div>

`

🚑 其他信息

版本信息: ` { "private": true, "author": "yj ********@qq.com", "scripts": { "dev": "umi dev", "build": "umi build", "postinstall": "umi setup", "setup": "umi setup", "start": "npm run dev" }, "dependencies": { "@ant-design/pro-chat": "^1.12.2", "antd": "^5.16.1", "antd-style": "^3.6.2", "umi": "^4.1.9" }, "devDependencies": { "@types/react": "^18.0.33", "@types/react-dom": "^18.0.11", "typescript": "^5.0.3" } }

`

Guida contributor