livechat / moments-apps-examples

2 stars 6 forks source link

Breaks with newest Moments SDK version #8

Open tcollins590 opened 2 years ago

tcollins590 commented 2 years ago

I am able to get the example working with the included packages. However Moments is using a very old version. If I update the moments package in the example, it breaks and will not display the moment information such as the title and icon.

Is there a chance the documentation for Moments has not been updated with the 1.8.0 release? I also cannot get the newest version working with React.

shihfu commented 2 years ago

Running into the same issue here with React on the latest version ^1.8.0. The following statement produces a document is not defined error.

import createMomentsSDK from "@livechat/moments-sdk";
qasim5611 commented 1 year ago

Yes i am also facing same issue whenever tried to run import createMomentsSDK from "@livechat/moments-sdk";

and after that's createMomentsSDK({ title: "My App" }).then((momentsSDK) => { // your code momentsSDK.sendMessage({ text: "Chosen date: 19.12.2009" }); });

it gives error time Out