# Two-way binding not working with target "esnext" on Typescript 5.4

**URL:** https://discourse.aurelia.io/t/two-way-binding-not-working-with-target-esnext-on-typescript-5-4/5492
**Category:** Framework Knowledge
**Created:** [July 7, 2024, 5:04pm UTC](https://discourse.aurelia.io/t/two-way-binding-not-working-with-target-esnext-on-typescript-5-4/5492 "2024-07-07T17:04:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mreiche](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/mreiche/32/1912_2.png) [@mreiche](https://discourse.aurelia.io/u/mreiche)
#### Post date: [July 7, 2024, 5:04pm UTC](https://discourse.aurelia.io/t/two-way-binding-not-working-with-target-esnext-on-typescript-5-4/5492/1 "2024-07-07T17:04:52Z")

</div>

I’ve upgraded Typescript from 5.3 to 5.4.5 (or higher) and two-way binding is not working anymore. Unfortunately, I cannot find a working Aurelia 1 Stackblitz for demonstration.

---

<div class="post-metadata">

### Author: ![graycrow](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/graycrow/32/323_2.png) [@graycrow](https://discourse.aurelia.io/u/graycrow)
#### Post date: [July 10, 2024, 12:52pm UTC](https://discourse.aurelia.io/t/two-way-binding-not-working-with-target-esnext-on-typescript-5-4/5492/2 "2024-07-10T12:52:54Z")

</div>

Not the answer that would help you, but I have 2 relatively large Aurelia 1 applications under active development and neither of them has this problem. TS v5.5.3

---

<div class="post-metadata">

### Author: ![mreiche](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/mreiche/32/1912_2.png) [@mreiche](https://discourse.aurelia.io/u/mreiche)
#### Post date: [July 11, 2024, 7:06am UTC](https://discourse.aurelia.io/t/two-way-binding-not-working-with-target-esnext-on-typescript-5-4/5492/3 "2024-07-11T07:06:52Z")

</div>

You are right, it’s not directly Typescript related, but “target” in `tsconfig.json`.  
I need the `Object.groupBy` feature and the documentation [1] said I have to upgrade Typescript and change the target to `esnext`, which prevents two-way-binding to work properly. I switched back to “es6” and it works fine.

[1] [javascript - How to enable Object.groupBy() in TypeScript and Node.js - Stack Overflow](https://stackoverflow.com/questions/77663053/how-to-enable-object-groupby-in-typescript-and-node-js)

---

<div class="post-metadata">

### Author: ![avrahamcool](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/avrahamcool/32/368_2.png) [@avrahamcool](https://discourse.aurelia.io/u/avrahamcool)
#### Post date: [June 24, 2025, 9:17pm UTC](https://discourse.aurelia.io/t/two-way-binding-not-working-with-target-esnext-on-typescript-5-4/5492/4 "2025-06-24T21:17:34Z")

</div>

i also had this problem, took me a while to figure out it was the target.  
turns out that targeting es2021 works fine - but anything greater seems to break the binding system.
