# Aurelia 1 es2022 compatibility

**URL:** https://discourse.aurelia.io/t/aurelia-1-es2022-compatibility/6543
**Category:** Uncategorized
**Created:** [November 20, 2025, 1:18pm UTC](https://discourse.aurelia.io/t/aurelia-1-es2022-compatibility/6543 "2025-11-20T13:18:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![elitastic](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/elitastic/32/1787_2.png) [@elitastic](https://discourse.aurelia.io/u/elitastic)
#### Post date: [November 20, 2025, 1:18pm UTC](https://discourse.aurelia.io/t/aurelia-1-es2022-compatibility/6543/1 "2025-11-20T13:18:43Z")

</div>

Aurelia 1 does not appear to be working with the typescript target es2022. Bindings like “on-change.call” are not working.

Repro:

1. Create new aurelia 1 application by running `au new`, use options for webpack and typescript

2. Change target in tsconfig.json to es2022

```auto
"compilerOptions": {
    ...
    "target": "es2022",
    ...
}

```

1. create the following setup:

app.ts

```auto
export class App
{
  onChange()
  {
    alert('changed');
  }
}

```

app.html

```auto
<template>
  <require from="./my-component"></require>

  <my-component on-change.call="onChange()"></my-component>
</template>

```

my-component.html

```auto
<template>
  <button click.trigger="test()">Test</button>
</template>

```

my-component.ts

```auto
import {bindable} from 'aurelia-framework';

export class MyComponent
{
  @bindable
  onChange: () => void;

  test()
  {
    this.onChange();
  }
}

```

1. When clicking the Test button, the following error appears:

```auto
this.onChange is not a function

```

Could someone have a look or provide any details about the compatibility of aurelia 1 with the es2022 target?

Thank you.

// UPDATE:

Full repro on stackblitz: [au1 versuch - StackBlitz](https://stackblitz.com/edit/au2-conventions-aqgkxfxv?file=tsconfig.json)
