# Uncaught (in promise) Error: AUR0713: Unknown binding command: delegate

**URL:** <https://discourse.aurelia.io/t/uncaught-in-promise-error-aur0713-unknown-binding-command-delegate/5086>\
**Category:** Uncategorized\
**Created:** [January 31, 2023, 7:00am UTC](https://discourse.aurelia.io/t/uncaught-in-promise-error-aur0713-unknown-binding-command-delegate/5086 "2023-01-31T07:00:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![redone218](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/redone218/32/303_2.png) [@redone218](https://discourse.aurelia.io/u/redone218)\
**Post date:** [January 31, 2023, 7:00am UTC](https://discourse.aurelia.io/t/uncaught-in-promise-error-aur0713-unknown-binding-command-delegate/5086/1 "2023-01-31T07:00:07Z")

</div>

I just create new project via npx with Aurelia 2 version is 2.0.0.beta.1 and add simple code:

Click

Uncaught (in promise) Error: AUR0713: Unknown binding command: delegate  
at createError (index.dev.mjs?bb4a:46:1)  
at CompilationContext.\_createCommand (index.dev.mjs?bb4a:6795:1)  
at TemplateCompiler.\_compileElement (index.dev.mjs?bb4a:6161:1)  
at TemplateCompiler.\_compileNode (index.dev.mjs?bb4a:6023:1)  
at TemplateCompiler.\_compileNode (index.dev.mjs?bb4a:6030:1)  
at TemplateCompiler.compile (index.dev.mjs?bb4a:5771:1)  
at Rendering.compile (index.dev.mjs?bb4a:2772:1)  
at Controller.\_hydrate (index.dev.mjs?bb4a:3055:1)  
at Controller.\_hydrateCustomElement (index.dev.mjs?bb4a:3041:1)  
at Controller.$el (index.dev.mjs?bb4a:2985:1)

---

<div class="post-metadata">

**Author:** ![ivan](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/ivan/32/2022_2.png) [@ivan](https://discourse.aurelia.io/u/ivan)\
**Post date:** [January 31, 2023, 11:46am UTC](https://discourse.aurelia.io/t/uncaught-in-promise-error-aur0713-unknown-binding-command-delegate/5086/2 "2023-01-31T11:46:17Z")

</div>

`delegate` has been removed. You can use `trigger` instead. So in your code when you are binding events it would look something like this:

```auto
<button click.trigger="onClick()>Click me</button>

```

---

<div class="post-metadata">

**Author:** ![redone218](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/redone218/32/303_2.png) [@redone218](https://discourse.aurelia.io/u/redone218)\
**Post date:** [January 31, 2023, 3:53pm UTC](https://discourse.aurelia.io/t/uncaught-in-promise-error-aur0713-unknown-binding-command-delegate/5086/3 "2023-01-31T15:53:41Z")

</div>

You’re right. Thank you 🤩

---

<div class="post-metadata">

**Author:** ![bigopon](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/bigopon/32/18_2.png) [@bigopon](https://discourse.aurelia.io/u/bigopon)\
**Post date:** [February 1, 2023, 2:04am UTC](https://discourse.aurelia.io/t/uncaught-in-promise-error-aur0713-unknown-binding-command-delegate/5086/4 "2023-02-01T02:04:35Z")

</div>

The messages around the removed binding command have been enhanced in DEV dist. you can see in this commit [chore(doc): better dev message for missing delegate and call binding … · aurelia/aurelia@cb0f646 · GitHub](https://github.com/aurelia/aurelia/commit/cb0f646371322e05968b5b79379f1480f2c6d0ac)
