Discussions

Ask a Question
Back to All

Issues with HeyGen SDK Integration on My Website

Hi there,

I have been trying to integrate the HeyGen SDK into my website, but I'm running into some issues. Even though I have followed the steps in the documentation, the avatar is not showing up on the page, and I am unable to interact with it as expected. I’ve verified that I have the correct API token and avatar ID from the .env file, but I’m still not seeing any output on the page.

I have the following setup:

The SDK is installed and imported into my main.js file.

The avatar is initialized with the correct API token and avatar ID.

The container for the avatar is properly set up in my HTML file.

Despite this, no avatar is being rendered, and I don’t see any errors in the console (besides some type-related errors).

Could this be a compatibility issue with the SDK version I’m using? Is there a known problem that could be causing this issue?

Additionally, I would like to know if there is an alternative or recommended way to implement the avatar on my website. Should I approach this differently or use another method to achieve the same result?

Any help or advice would be greatly appreciated!

Thank you in advance.