In the environment of XINCHUANG(信创) system,unable to have a conversation #8459

Closed
opened 2026-02-21 18:25:48 -05:00 by yindo · 1 comment
Owner

Originally created by @qzzrk on GitHub (Feb 20, 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

0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Use 360 and firefox Browser,All failed to start a normal conversation,browser console show
Uncaught syntaxError, expected property name, got'{'

Image

✔️ Expected Behavior

fix it

Actual Behavior

No response

Originally created by @qzzrk on GitHub (Feb 20, 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 0.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Use 360 and firefox Browser,All failed to start a normal conversation,browser console show Uncaught syntaxError, expected property name, got'{' ![Image](https://github.com/user-attachments/assets/5b3e468a-25cd-4f12-87a0-9d245d7ce81b) ### ✔️ Expected Behavior fix it ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:25:48 -05:00
yindo closed this issue 2026-02-21 18:25:48 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 20, 2025):

Hey @qzzrk! 👋 I'm here to help you with any bugs, questions, or contribution opportunities while you wait for a human maintainer. I'm excited to assist you!

The issue you're encountering with the "Uncaught syntaxError, expected property name, got '{'" in the 360 and Firefox browsers might be related to the use of modern JavaScript features that are not supported by these browsers. Specifically, the Dify codebase uses the toReversed() method on arrays, which is not supported in older versions of some browsers [1].

To address this, ensure that the polyfill for the toReversed method is correctly implemented and imported in your project. The polyfill is defined in array.polyfill.ts and should be imported in utils.ts with the line import './array.polyfill'; [1].

Additionally, the presence of Babel in the Dify codebase suggests that it is used to transpile modern JavaScript into a version compatible with older browsers. Ensure that your Babel configuration is correctly set up to handle these features [2].

If the issue persists, it might be helpful to check if there are any other modern JavaScript features being used that require additional polyfills or transpilation.

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 (Feb 20, 2025): <!-- Greeting --> Hey @qzzrk! 👋 I'm here to help you with any bugs, questions, or contribution opportunities while you wait for a human maintainer. I'm excited to assist you! <!-- Answer --> The issue you're encountering with the "Uncaught syntaxError, expected property name, got '{'" in the 360 and Firefox browsers might be related to the use of modern JavaScript features that are not supported by these browsers. Specifically, the Dify codebase uses the `toReversed()` method on arrays, which is not supported in older versions of some browsers <sup>[[1]](https://github.com/langgenius/dify/issues/13402)</sup>. To address this, ensure that the polyfill for the `toReversed` method is correctly implemented and imported in your project. The polyfill is defined in `array.polyfill.ts` and should be imported in `utils.ts` with the line `import './array.polyfill';` <sup>[[1]](https://github.com/langgenius/dify/issues/13402)</sup>. Additionally, the presence of Babel in the Dify codebase suggests that it is used to transpile modern JavaScript into a version compatible with older browsers. Ensure that your Babel configuration is correctly set up to handle these features <sup>[[2]](https://github.com/langgenius/dify/blob/main/web/package.json)</sup>. If the issue persists, it might be helpful to check if there are any other modern JavaScript features being used that require additional polyfills or transpilation. <!-- 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/1e219019-3b4e-4e3d-9bdd-554f95baf24e?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/1e219019-3b4e-4e3d-9bdd-554f95baf24e?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/1e219019-3b4e-4e3d-9bdd-554f95baf24e?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/1e219019-3b4e-4e3d-9bdd-554f95baf24e?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/1e219019-3b4e-4e3d-9bdd-554f95baf24e?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/1e219019-3b4e-4e3d-9bdd-554f95baf24e?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/1e219019-3b4e-4e3d-9bdd-554f95baf24e?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8459