I use the decorator like this: ---------------------------- export class LoginDto { @IsEmail({},{message:'hahah'}) email: string @IsString() @MinLength(6, { message: 'nolonger than 6' }) password:string constructor(email = '', password = '') { this.email = email this.password = password } } ---------------------------- and vscode give me the Error with decorator in Typescript: Unable to resolve signature of property decorator when called as an expression.ts(1240)