`NaN` is an invalid value for the `width` css style property


Everytime I join a meeting, I always get this error in the console, though I can successfully join a meeting, it just bothers me if there is an error in the console that is not handled.

Here is my configuration.

...
const query = this.props.router.query;
this.setState({
    meetingNumber: query.mid,
    userName: atob(query.un),
    passWord: query.pwd,
    signature: query.sg,
    leaveUrl: `/zoom?mid=${query.mid}&pwd=${query.pwd}&un=${query.un}&sg=${query.sg}&md=1`,
});
...
const signature = ZoomMtg.generateSignature({
    meetingNumber: meetConfig.meetingNumber,
    apiKey: meetConfig.apiKey,
    apiSecret: meetConfig.apiSecret,
    role: meetConfig.role,
    success: function (res) {
        console.log(res.result);
    }
});
// BTW this does not work, it did not remove the invite button
ZoomMtg.showInviteFunction({ show: false });

ZoomMtg.init({
    leaveUrl: this.state.leaveUrl,
    isSupportAV: true,
    disableInvite: false,
    audioPanelAlwaysOpen: false,
    isSupportChat: false,
    success: function () {
        ZoomMtg.join({
          meetingNumber: meetConfig.meetingNumber,
          userName: meetConfig.userName,
          userEmail: '',
          signature: signature,
          apiKey: meetConfig.apiKey,
          passWord: meetConfig.passWord,
          success: function (res) {
            wrapper.hide();
            $('body').removeClass('loading-pointer');

            $(document).on('click', () => {
              setTimeout(() => {
                const participantHeader = $('chat-participant-header');
                console.log(participantHeader);
                if (participantHeader.is(':visible')) {
                  console.log('it is visible');
                }
              }, 100);
            });
          },
          error: function (res) {
            console.log(res);
          }
        });
      },

Is there something missing in my configuration?

Hey @dashawk,

I have also noticed this error. Although it is annoying, it is not a blocker and does not break anything.

We will work on fixing this, but don’t worry too much. :slight_smile:

Thanks,
Tommy

1 Like