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()