React with Typescript – Type { } is missing the following properties from type

As you are passing card to ProfileCard component, its passing 4 values in props.

{login: string, name: string, key: number, id: number}

But your interface has only 2

interface ProfileCardProps{ 
  login: string; 
  name: string; 
}

Adding key and id should solve the issue.

interface ProfileCardProps{ 
  login: string; 
  name: string;
  id:any;
  key: any;
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)