Error accessing custom contact properties through API

const contact = await hubspotClient.crm.contacts.basicApi.getById(
id,
undefined,
undefined,
[
‘clients_invited’,
],
true
);