Tagged articles

alpha version

1 articles · Page 1 of 1
Tech Musings
Tech Musings
Sep 3, 2026 · Frontend Development

Why `!b` Becomes `_a_b`: uni-app Compiler Bug with Variable `b`

The uni-app mini-program compiler (alpha) incorrectly replaces `!b` with undeclared `_a_b` when a local variable is named `b`, causing a runtime ReferenceError only when specific data triggers the condition; the bug evades build, TypeScript, and ESLint checks, and is fixed by renaming the variable.

DebuggingReferenceErroralpha version
0 likes · 24 min read
Why `!b` Becomes `_a_b`: uni-app Compiler Bug with Variable `b`