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

点击左下角的设置出现了这个问题 #140

Closed
maokaigang opened this issue Mar 29, 2023 · 11 comments
Closed

点击左下角的设置出现了这个问题 #140

maokaigang opened this issue Mar 29, 2023 · 11 comments

Comments

@maokaigang
Copy link

Application error: a client-side exception has occurred (see the browser console for more information).

@maokaigang
Copy link
Author

TypeError: Cannot read properties of undefined (reading 'toString')

@Yidadaa
Copy link
Collaborator

Yidadaa commented Mar 29, 2023

请提供浏览器版本和操作系统版本,目前仅支持新版本 Chrome、Firefox 和 Safari。

@maokaigang
Copy link
Author

浏览器:Chrome 版本 111.0.5563.110(正式版本) (arm64)、Safari
操作系统:macOS ventura 13.2.1

@AprilNEA
Copy link
Contributor

请提供更详细的报错或截图

@Yidadaa
Copy link
Collaborator

Yidadaa commented Mar 29, 2023

建议附上控制台报错截图,最好包含 stack trace。

@maokaigang
Copy link
Author

我是根据 “保持更新 Keep Updated” 后出现的这个问题,重新fork了一下repo。
image

image

@maokaigang
Copy link
Author

mac端的Safari是正常的,ios端的Safari是有报错的

@maokaigang
Copy link
Author

455-aec405536590d123.js:9 TypeError: Cannot read properties of undefined (reading 'toString')
at M (485.35600f5037071f78.js:1:8367)
at un (455-aec405536590d123.js:9:69150)
at oi (455-aec405536590d123.js:9:84746)
at a (455-aec405536590d123.js:9:142541)
at sb (455-aec405536590d123.js:9:120557)
at 455-aec405536590d123.js:9:120384
at sg (455-aec405536590d123.js:9:120391)
at su (455-aec405536590d123.js:9:118251)
at sa (455-aec405536590d123.js:9:116866)
at A (455-aec405536590d123.js:25:10658)

@Yidadaa
Copy link
Collaborator

Yidadaa commented Mar 29, 2023

应该是这行导致的问题:

https://github.com/Yidadaa/ChatGPT-Next-Web/blob/main/app/components/settings.tsx#L235

往 zustand store 里增加新的字段之后就会出现该问题,临时解决方法

title={`${config.fontSize ?? 14}px`}

后续完全解决,需要加强 store version number 和 zustand persist merge 函数的使用。

关联 PR: #89

@Yidadaa
Copy link
Collaborator

Yidadaa commented Mar 29, 2023

请更新后重试下。

@maokaigang
Copy link
Author

可以了

yxl pushed a commit to yxl/ChatGPT-Next-Web that referenced this issue May 4, 2023
ryiann pushed a commit to ryiann/ChatGPT that referenced this issue Dec 1, 2023
[+] chore(constant.ts): fix LaTex formatting in constant file
[+] test(constant.ts): add LaTex examples for research purpose
ryiann pushed a commit to ryiann/ChatGPT that referenced this issue Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants