"@azure/communication-calling" npm package | new CallClient() geting error when we take the build in react.

Freb 6 Reputation points
2021-03-24T18:22:22.037+00:00

In my ACS project when i take the build, code line -> this.callClient = new CallClient(options);
getting an error which mentioned bellow.

" ReferenceError: this hasn't been initialised - super() hasn't been called at e.exports (assertThisInitialized.js:3) "

but it works fine in my local.

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
677 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 15,856 Reputation points
    2021-03-26T05:15:44.677+00:00

    Hi @Freb ,

    Thanks for bringing this to our attention. Are you following this tutorial? This line

    super() hasn't been called at e.exports (assertThisInitialized.js:3)  
    

    doesn't look like it's part of the ACS library. Please share your issue on this Github repo so that the ASC team can investigate this issue further https://github.com/Azure/Communication/issues

    0 comments No comments