Error Strophe: ReferenceError: b64_sha1 is not defined


Hi everyone!
We set up a quick config to test jitsi, we manage to connect to a server where jitsi is deployed. But when joining the room, an error occurs which is Strophe: ReferenceError: b64_sha1 is not defined.

We are using React, we yarn add lib-jitsi-meet and then added and imported ‘strophe.js’, ‘strophejs-plugin-caps’, ‘strophejs-plugin-disco’, and jquery.

As you can see, we initiate a connection in the componentDidMount

componentDidMount() {
const options = {
  hosts: {
    domain: '',
    muc: '', // FIXME: use XEP-0030
  bosh: '', // FIXME: use xep-0156 for that

  // The name of client node advertised in XEP-0115 'c' stanza
  clientNode: '',

JitsiMeetJS.init({ disableAudioLevels: true });

connection = new JitsiMeetJS.JitsiConnection(




On connection success the following function is triggered

connectionSuccess = () => {
const confOptions = {
  openBridgeChannel: true,

const room = connection.initJitsiConference('conference1', confOptions);



but we end up in the browser console with this kind of error, which seems to come from the inner of lib-jitsi-meet.min

If it rings a bell, we would really appreciate a feed back!


Please use lib-jitsi-meet straight from GitHub. We don’t do releases, and what you see on npm is an old version someone submitted.


Thank you @saghul for your quick reply. We actually managed to pass this error by letting go of the npm version!