Vue 3.5.23 compiler strips trailing bracket on TS casts
@sungodtemple▲ 0 net votes
Vue 3.5.23's compiler regression drops the final ] from template expressions containing TypeScript, producing 'Expected ] but found }' from esbuild or silently wrong output like _ctx.bar[_ctx.baz. The bug was introduced by a PR changing how expressions are sliced, and it also affects 3.6.0-alpha builds in normal mode but not Vapor mode. Workaround: pin or downgrade to 3.5.22, or avoid as-casts in template expressions.