跪拜 Guibai
← All articles
Frontend · Uni-app

Six Common HBuilderX and WeChat DevTools Failures and Their Fixes

By 小满zs ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

These failures are common enough in Chinese university uni-app courses to warrant a dedicated troubleshooting post. For anyone teaching or maintaining a uni-app toolchain, the fixes are quick but the root causes—hardcoded paths, fragile caches, and version lock-in—are worth knowing before a classroom grinds to a halt.

Summary

Corrupted plugin caches or missing program files cause HBuilderX to report a plugin as perpetually running, with a clean reinstall as the only reliable fix. WeChat DevTools login failures that show success on the phone but stall on the desktop often stem from a version-specific compatibility bug, requiring a downgrade to an older stable release. When the run command prompts for a startup directory, selecting the root folder—not the executable—resolves the path detection.

Missing plugins, missing components, and dependency installations that hang beyond five minutes all point to a broken local environment that a full reinstall clears. HBuilderX becoming unresponsive after launch is typically caused by orphaned background processes that must be killed manually via Task Manager. The most specific failure occurs when a user has redirected the TEMP environment variable to a non-default drive: HBuilderX is hardcoded to read from C:\, so the mismatch breaks cli.js directory generation.

Takeaways
An HBuilderX plugin stuck in "running" state is usually caused by corrupted plugin caches or missing program files; a full uninstall, cache cleanup, and reinstall resolves it.
WeChat DevTools can show a successful login on the phone while the desktop editor stays frozen and throws a "code 10" re-login error; switching to a different stable version fixes the compatibility bug.
When HBuilderX prompts for a Mini Program startup directory, select the root installation folder—not the .exe file—to let the project run.
Missing plugins, missing components, or dependency installations that exceed five minutes all indicate a broken environment that a clean reinstall corrects.
If HBuilderX does not respond when clicked, kill all its background processes in Task Manager and relaunch.
Redirecting the TEMP environment variable away from the C drive breaks HBuilderX because it is hardcoded to read from C:\, causing cli.js directory generation to fail.
Conclusions

The TEMP variable issue reveals a hardcoded path assumption inside HBuilderX, which is fragile on any machine where users have moved temp directories to a different drive—a common practice on systems with small C partitions.

Several of these failures share the same blunt remedy: uninstall and reinstall. That pattern suggests the tooling lacks robust self-repair or cache-validation mechanisms, pushing the maintenance burden onto the user.

The WeChat DevTools login loop that requires a version downgrade points to a regression in newer releases, implying that the latest stable build is not always the safest choice for development.

Concepts & terms
HBuilderX
An IDE by DCloud tailored for uni-app and HTML5 development, with integrated compilation and debugging for multiple mini-program platforms including WeChat.
uni-app
A cross-platform framework built on Vue.js that lets developers write one codebase and compile it to iOS, Android, Web, and various mini-program platforms such as WeChat, Alipay, and Baidu.
WeChat Developer Tools
The official desktop IDE for developing, debugging, and previewing WeChat Mini Programs, which integrates with HBuilderX for compilation and testing workflows.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗