alibaba / alibaba/ChatUI

希望对window做一下判断。要不然在next.js: use client 中一直提示报错找不到window。 尤其是chat 组件

Open
#188 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.4k
Forks
425
PR merge metrics
No merged PRs in 30d

Description

**Version information (版本信息)**
- ChatUI or ChatUI Pro?
- ChatUI Version:
- React Version:
- OS Version:
- Browser Version:

**Describe the bug (描述问题)**
希望对window做一下判断。要不然在next.js: use client 中一直提示报错找不到window。 尤其是chat 组件
**Steps To Reproduce (重现步骤)**
1.
2.

**Link to minimal reproduction (最小化重现链接)**

**Expected behavior (期望的结果是什么)**

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported error in a Next.js `use client` setup that uses the chat component. Identify where the component accesses `window`, then verify that the chat component renders without a missing-`window` error in that setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
next.js, react, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.