tkimia - Hey all,My team is currently using Ne...
Hey all,
My team is currently using NextJS and
"@thoughtspot/visual-embed-sdk": "1.36.1",. Today, I tried to update to version 1.43 but show this error shows up during my build.
I'm assuming this is due to an unsafe call on window in a server component. possibly in init?3 Replies
cc: @Ruchi Anand
Hi @tkimia
This error happens because newer versions of the ThoughtSpot embed SDK rely heavily on window and can’t be imported or executed in Server Components. With Next.js + Turbopack, this triggers window is not defined during prerendering.
To fix it, move all SDK usage (including init()) into a Client Component or load it via a dynamic import with ssr: false.
client components still pre-render on the server (for future reference)