Amity ts sdk

Module ‘“@amityco/ts-sdk”’ has no exported member ‘createClient’.

Hello, may we know your current sdk version, please?

Hello, my apologies for the insufficient question.

I am trying to use the https://www.npmjs.com/package/@amityco/ts-sdk ts-sdk to make react native app. and when I use createClient like it says in the documentation I get the aforementioned error.

It happened on version 6.0.0. but it is still an issue on 6.1.0

Hello, could you please confirm whether you have updated your code based on the migration guide provided here for version 6.x.x https://docs.amity.co/migration-guides/ts-sdk-v6.0.0-migration-guide#introducing-repositories

Sample code:

`import { API_REGIONS, Client, enableCache } from '@amityco/ts-sdk';

const apiKey = '<APIKEY>';
const client = Client.createClient(apiKey, API_REGIONS.EU);

enableCache();
1 Like