"liveReactions" is not exported from amityco/ts-sdk

Hi,
I am using amityco/ts-sdk version 6.5.0,

I tried to use liveReactions as mentioned in documentation but got this error

Hi @ahmedsakri ,

Can you please help share the error? It’s not attached in your post

Thank you,
Amity Support

Hi @ahmedsakri ,

Or is this the same issue as another post you’ve made? Post reaction are getting always blank array. Your confirmation would be appreciated so we can close this case.

Thank you,
Amity Support

1 Like

Hi,
Thank you for reaching me out soon.
This both error are different.
My current code to fetch the reaction users is

ReactionRepository.getReactions(
      { referenceId: postId, referenceType: 'post' },
      ({data}) => {
        setReactions(data);
      }
    );

So earlier, I get list of userIds who like post but now i get empty array even i have likes on that post.
So this is my post where post has 2 likes.

so when i click on that to show who likes it it gives me blank.

so i checked the doc to get the reaction user list so i tried to use liveReactions

but i get below errors.

I hope you understand my issue.
This was working perfectly some day ago and breaks now.
Please solve ASAP

@ahmedsakri ,

Noted we’re investigating for you right now.

However (concerning the other posts you made), this seems to be the exact same code and issue (return blank array). If they are different errors can you please help share the other error in this other post Post reaction are getting always blank array?

Thank you,
Amity Support

Both issues are same but i posted twice because i used multiple ways to fetch it and both are not. working on my side.

@cijin Any update on this? We are waiting

Hi @ahmedsakri ,

Apologies for delay, the doc has been updated. Please retry with updated code.

Thank you,
Amity Support

Hi @SocialPlus_Support @cijin,
I installed latest version of package and used the new doc.
@amityco/ts-sdk”: “^6.5.5”,

but till i am getting same error

The requested module '/node_modules/.vite/deps/@amityco_ts-sdk.js?v=c38afd20' does not provide an export named 'liveReactions' (at PostComments.tsx:8:10)

Please look into this matter urgently. I am stuck.

Hi @ahmedsakri ,

We’re looking into it and will update you once confirmed asap.

Thank you,
Amity Support

Hi @ahmedsakri ,

It seems there was a mistake in our doc, please change liveReactions to getReactions. Does that solve your issue?

Thank you,
Amity Support

Thank you so much @SocialPlus_Support. It works finally.