# Aurelia 2.0.0-beta.17 decorator error

**URL:** <https://discourse.aurelia.io/t/aurelia-2-0-0-beta-17-decorator-error/5428>\
**Category:** Uncategorized\
**Created:** [May 15, 2024, 9:24am UTC](https://discourse.aurelia.io/t/aurelia-2-0-0-beta-17-decorator-error/5428 "2024-05-15T09:24:31Z")\
**Posts on this page:** 5\
**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:** [May 15, 2024, 9:24am UTC](https://discourse.aurelia.io/t/aurelia-2-0-0-beta-17-decorator-error/5428/1 "2024-05-15T09:24:31Z")

</div>

I have created new project with npx makes aurelia.  
Command line: npx makes aurelia new-project-name -s typescript,shadow-dom,less,app-with-router  
I make simple code:  
import { bindable } from “aurelia”;

export class NavyDropdown{  
@bindable allowClose: boolean = false;  
}

And I got errors:  
TS1240: Unable to resolve signature of property decorator when called as an expression.  
No overload matches this call.  
Overload 1 of 4, ‘(_: undefined, context: ClassFieldDecoratorContext\<unknown, unknown\>): void’, gave the following error.  
Argument of type ‘NavyDropdown’ is not assignable to parameter of type ‘undefined’.  
Overload 2 of 4, '(_: Function, context: ClassGetterDecoratorContext\<unknown, unknown\>): void’, gave the following error.  
Argument of type ‘NavyDropdown’ is not assignable to parameter of type ‘Function’.  
Type ‘NavyDropdown’ is missing the following properties from type ‘Function’: apply, call, bind, prototype, and 5 more.

How to fix it?  
I got same error with @lifecycleHooks()

---

<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:** [May 15, 2024, 1:40pm UTC](https://discourse.aurelia.io/t/aurelia-2-0-0-beta-17-decorator-error/5428/2 "2024-05-15T13:40:45Z")

</div>

@redone218 it’s likely you are still having `experimentalDecorator: true` in your tsconfig.

We’ve updated all our decorators to follow latest TC39 spec now, which means you’ll need to remove that config from your tsconfig.

You can read more here for clearer steps: [Release v2.0.0-beta.15 · aurelia/aurelia · GitHub](https://github.com/aurelia/aurelia/releases/tag/v2.0.0-beta.15)

---

<div class="post-metadata">

**Author:** ![huochunpeng](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@huochunpeng](https://discourse.aurelia.io/u/huochunpeng)\
**Post date:** [May 15, 2024, 11:09pm UTC](https://discourse.aurelia.io/t/aurelia-2-0-0-beta-17-decorator-error/5428/3 "2024-05-15T23:09:08Z")

</div>

Sorry, I will update our skeleton to remove that from tsconfig.  
Update: done.

---

<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:** [May 18, 2024, 2:57am UTC](https://discourse.aurelia.io/t/aurelia-2-0-0-beta-17-decorator-error/5428/4 "2024-05-18T02:57:09Z")

</div>

Thank you for responding. I have solved the problem.  
Change tsconfig.json:  
“emitDecoratorMetadata”: false,  
“experimentalDecorators”: false,

---

<div class="post-metadata">

**Author:** ![ghiscoding](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/ghiscoding/32/1199_2.png) [@ghiscoding](https://discourse.aurelia.io/u/ghiscoding)\
**Post date:** [May 19, 2024, 4:19am UTC](https://discourse.aurelia.io/t/aurelia-2-0-0-beta-17-decorator-error/5428/5 "2024-05-19T04:19:18Z")

</div>

@redone218 instead of setting them to false, you should remove them completely to avoid confusion. It’s just a suggestion
