Samir Thapa - Hello, I'm currently embedding ...
Hello,
I'm currently embedding ThoughtSpot Visual Embed SDK using NextJS 15. While it was working fine previously, it now shows the following error when running the app::
As per my understanding, the SDK is mounting over the server side which is causing this error. Any sort of insight or help would be appreciated! Thanks
6 Replies
Even retried with a fresh NextJS project. Importing from @thoughtspot/visual-embed-sdk shows an error right away:
// import { init } from "@thoughtspot/visual-embed-sdk";
export default function Home() {
return <div>Test</div>;
}
Hey @Samir Thapa , What was the older sdk version that you were using ? ( working one )
Yes just checked.
older one was this : 1.33.9 but even this version is showing the error now
yeah, @Samir Thapa . I will get back to you on this.
Hey @Samir Thapa , Can we revert to : 1.32.0 for now?
Thanks.
based on the recent changes to the SDK, I recommend using the ThoughtSpot Visual Embed SDK exclusively on the client side moving forward. This will help avoid issues related to server-side rendering. I will discuss this further with my team and get back to you with any additional insights or recommendations.
thanks and for now it's working
Hey, Can you do all the sdk related stuff on the client side?
That should be how sdk used. Most of the code will need client side.
https://codesandbox.io/p/sandbox/next-js-starter-vesdk-rnf9mm
Check out this - it will work with latest sdk. And upgrade to latest sdk.
Hey @Samir Thapa , Can you confirm the nextjs version you were using previously, you have now nextjs 15 as you told.