Adapted for WeChat Mini Programs and Uniapp #19846

Closed
opened 2026-02-21 20:04:31 -05:00 by yindo · 1 comment
Owner

Originally created by @Zhou-111 on GitHub (Oct 23, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

Embedding Uniapp does not display properly in WeChat Developer Tools, but it works in the browser. Is it because embedding is not supported

2. Additional context or comments

Image Image

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @Zhou-111 on GitHub (Oct 23, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. Embedding Uniapp does not display properly in WeChat Developer Tools, but it works in the browser. Is it because embedding is not supported ### 2. Additional context or comments <img width="977" height="992" alt="Image" src="https://github.com/user-attachments/assets/da6f2902-afc4-40f0-bb9d-382b2c100b8d" /> <img width="1920" height="925" alt="Image" src="https://github.com/user-attachments/assets/37521c60-32b7-4d56-aa01-36bebf0e25f1" /> ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo added the 🙋‍♂️ question label 2026-02-21 20:04:31 -05:00
yindo closed this issue 2026-02-21 20:04:31 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 23, 2025):

Hi @Zhou-111! I'm Dosu and I’m helping the dify team.

There is no built-in support in Dify for Uniapp or WeChat Mini Program environments, and the codebase does not contain any platform-specific adaptations or error handling for these cases. Embedding Dify (or Uniapp) in WeChat Mini Programs often works in browsers but can fail in the WeChat Developer Tools or Mini Program environment due to compatibility issues, unsupported JavaScript features, or stricter sandboxing in WeChat's web-view.

Known issues include errors like ChunkLoadError, Uncaught SyntaxError: Unexpected token '{', and problems with ES2022 syntax (such as static blocks in dependencies like mermaid). Some of these were fixed in Dify 1.3.1 (notably the i.find is not a function error), but others may persist depending on your dependencies and build setup. For ES2022 syntax errors, you can use Babel with @babel/plugin-transform-class-static-block and configure your next.config.js to transpile problematic dependencies for compatibility with WeChat Mini Program web-view environments. Using HTTPS for embedded resources is also recommended, as HTTP can cause display issues in WeChat Mini Programs.

There are no official docs for this scenario, but community threads provide more details and workarounds. If you continue to see issues, check your build for unsupported syntax, ensure all static assets are accessible, and consider upgrading Dify and your dependencies to the latest versions. Some issues may be platform-specific and not fully resolvable without changes to the WeChat Mini Program environment itself.
Relevant discussion and workarounds

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

@dosubot[bot] commented on GitHub (Oct 23, 2025): <!-- Greeting --> Hi @Zhou-111! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify team. <!-- Answer --> There is no built-in support in Dify for Uniapp or WeChat Mini Program environments, and the codebase does not contain any platform-specific adaptations or error handling for these cases. Embedding Dify (or Uniapp) in WeChat Mini Programs often works in browsers but can fail in the WeChat Developer Tools or Mini Program environment due to compatibility issues, unsupported JavaScript features, or stricter sandboxing in WeChat's web-view. Known issues include errors like `ChunkLoadError`, `Uncaught SyntaxError: Unexpected token '{'`, and problems with ES2022 syntax (such as static blocks in dependencies like `mermaid`). Some of these were fixed in Dify 1.3.1 (notably the `i.find is not a function` error), but others may persist depending on your dependencies and build setup. For ES2022 syntax errors, you can use Babel with `@babel/plugin-transform-class-static-block` and configure your `next.config.js` to transpile problematic dependencies for compatibility with WeChat Mini Program web-view environments. Using HTTPS for embedded resources is also recommended, as HTTP can cause display issues in WeChat Mini Programs. There are no official docs for this scenario, but community threads provide more details and workarounds. If you continue to see issues, check your build for unsupported syntax, ensure all static assets are accessible, and consider upgrading Dify and your dependencies to the latest versions. Some issues may be platform-specific and not fully resolvable without changes to the WeChat Mini Program environment itself. [Relevant discussion and workarounds](https://github.com/langgenius/dify/issues/19798) <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/0e80fd88-f41d-4ca4-a901-075f164f8c68?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/0e80fd88-f41d-4ca4-a901-075f164f8c68?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/0e80fd88-f41d-4ca4-a901-075f164f8c68?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/0e80fd88-f41d-4ca4-a901-075f164f8c68?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/0e80fd88-f41d-4ca4-a901-075f164f8c68?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/0e80fd88-f41d-4ca4-a901-075f164f8c68?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/0e80fd88-f41d-4ca4-a901-075f164f8c68?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/27322)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#19846