How to use Jitsi with Create react app for web + electron app

Hello Team,

I am bit new to jitsi and I am blocked on one critical issue. I am working on react js web + electron app, which gives feature for user for conference room + screen share. Everything works well in browser including screen share. But when I try to share screen I am getting errors in electron app as

[features/desktop-picker] Called JitsiMeetElectron.obtainDesktopStreams but it is not defined

[JitsiMeetJS.js] <Object.getGlobalOnErrorHandler>: UnhandledError: null Script: null Line: null Column: null StackTrace: Error: Called JitsiMeetElectron.obtainDesktopStreams but it is not defined

  • Jitsi in injected in app with custom url hosting
  • React project is bootstrapped with Create react app
  • Electron version: 11.0.5
  • Electron-builder: 22.9.1

I also checked open issues/suggestions regarding using jitsi-meet-electron-utils in preload file & electron main file. But It didn’t worked.

Appreciate help! Thank you.