Application error: a client-side exception has occurred (see the browser console for more information). TypeError: g.getPrevChatList is not a function #8829

Closed
opened 2026-02-21 18:27:57 -05:00 by yindo · 2 comments
Owner

Originally created by @53698249 on GitHub (Mar 1, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

Version 0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Application error: a client-side exception has occurred (see the browser console for more information). TypeError: g.getPrevChatList is not a function NextJS 15
/_next/static/chunks/2117-facb83e7cbe5e185.js)

Image

Image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @53698249 on GitHub (Mar 1, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version Version 0.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Application error: a client-side exception has occurred (see the browser console for more information). TypeError: g.getPrevChatList is not a function NextJS 15 /_next/static/chunks/2117-facb83e7cbe5e185.js) ![Image](https://github.com/user-attachments/assets/4ca4deaf-1b52-4edb-9f00-7b64cae2b19f) ![Image](https://github.com/user-attachments/assets/c6e7235b-4c82-49f8-bb9e-6cafe97e37f9) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug🤔 cant-reproduce labels 2026-02-21 18:27:57 -05:00
yindo closed this issue 2026-02-21 18:27:57 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 1, 2025):

There are similar threads related to the TypeError: g.getPrevChatList is not a function issue in Dify version 0.15.3. This error is due to the removal of the getPrevChatList function during a recent code refactoring. Here are some relevant discussions and solutions:

  1. An open issue suggests that the error can be resolved by either waiting for the next official release that includes the fix or manually building the Docker image using the latest source code that contains the fix. The steps to manually build the Docker image are provided in the issue [1].

  2. Another similar issue mentions that for self-hosted instances, users can manually update their Dify instance to a specific commit or pull request by following certain steps, or wait for the new version to be released later [2].

To resolve this issue in your self-hosted Next.js application, you can follow the steps to manually build the Docker image using the latest source code that includes the fix. Alternatively, you can wait for the next version release that addresses this bug.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Mar 1, 2025): <!-- Answer --> There are similar threads related to the `TypeError: g.getPrevChatList is not a function` issue in Dify version 0.15.3. This error is due to the removal of the `getPrevChatList` function during a recent code refactoring. Here are some relevant discussions and solutions: 1. An open issue suggests that the error can be resolved by either waiting for the next official release that includes the fix or manually building the Docker image using the latest source code that contains the fix. The steps to manually build the Docker image are provided in the issue <sup>[[1]](https://github.com/langgenius/dify/issues/14643)</sup>. 2. Another similar issue mentions that for self-hosted instances, users can manually update their Dify instance to a specific commit or pull request by following certain steps, or wait for the new version to be released later <sup>[[2]](https://github.com/langgenius/dify/issues/13926)</sup>. To resolve this issue in your self-hosted Next.js application, you can follow the steps to manually build the Docker image using the latest source code that includes the fix. Alternatively, you can wait for the next version release that addresses this bug. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/2f1daaee-463d-43c8-b354-40a674aadcb3?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/2f1daaee-463d-43c8-b354-40a674aadcb3?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/2f1daaee-463d-43c8-b354-40a674aadcb3?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/2f1daaee-463d-43c8-b354-40a674aadcb3?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/2f1daaee-463d-43c8-b354-40a674aadcb3?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/2f1daaee-463d-43c8-b354-40a674aadcb3?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/2f1daaee-463d-43c8-b354-40a674aadcb3?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Mar 1, 2025):

Duplicated, fixed in v1.0.0

@crazywoola commented on GitHub (Mar 1, 2025): Duplicated, fixed in v1.0.0
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8829