Closed nkdhamelia closed 2 years ago
Working with our support team on this issue
I'm going to post the solution here.
Please make sure that you will load the Voxeet SDK in your NextJs app client side only. Something like this:
if(typeof window !== 'undefined') {
const VoxeetSDK = require('@voxeet/voxeet-web-sdk');
const init = VoxeetSDK.initializeToken.bind(VoxeetSDK);
init(accessToken, refreshToken);
}
Hi, I am trying to use Voxeet in my brand new Nextjs project but I am getting the following error, Is there any recommended way to integrate SDK with nextjs project? Please advice