I am trying to use the platform client sdk in the browser with typescript. Although no errors show in the code itself, when I try to execute the code in the browser, I get the following error:
Uncaught TypeError: purecloud_platform_client_v2_1.ApiClientClass is not a constructor
I suspect the issue may be with the import statement since we've seen something similar before when trying to use our own module, but I'm not sure how to go about fixing it for a third party module.
The code throwing the error is
this._authClient = new ApiClientClass().instance;
and the current import statement is
import {ApiClientClass} from "purecloud-platform-client-v2";