Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialization failed #257

Closed
rajivcoomar opened this issue Oct 9, 2024 · 4 comments
Closed

Initialization failed #257

rajivcoomar opened this issue Oct 9, 2024 · 4 comments

Comments

@rajivcoomar
Copy link

rajivcoomar commented Oct 9, 2024

I have followed the step of cloning the repo and performed npm run release to generate the amazon-connect-chat-interface.js

image

The generated amazon-connect-chat-interface.js deployed to our s3 and made accessible file cloud front url : https://dtky8hb7pj87y.cloudfront.net/JWTDemo/public/amazon-connect-chat-interface.js

I modified the OOTB widget to add customerChatInterfaceUrl

image

But I am getting the error :

image

I have not modified the git code, just cloned, build and trying to run it, but it’s failing.
Can you help me if I am missing any step ?

@alexander-sigida
Copy link

I tried this last week on Friday and today, got exactly the same result. Even did the same update as in the docs example. The funny part is that style seems to be applied:
image

No other errors then this one:
image

@rajivcoomar
Copy link
Author

I found the solution, just updated the package.json
amazon-connect-chatjs": "^2.2.4",

To

"amazon-connect-chatjs": "^2.2.5",

@xiajon
Copy link
Contributor

xiajon commented Oct 14, 2024

Thanks for submitting the issue, I have merged the chatjs upgrade to fix the issue. alexander-sigida are you still facing the issue after the upgrade? The reason for this issue is a new event handler introduced for onChatRehydrated which was only available in chatjs 2.2.5 version

@alexander-sigida
Copy link

Thanks, @rajivcoomar and @xiajon, after update of the chatjs to 2.2.5 I'm no longer experiencing the issue.

@agarwhi agarwhi closed this as completed Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants