[DailyProvider] Uncaught TypeError: Cannot read properties of undefined (reading 'call')

jdiz Member

Hi folks,

I'm working on a custom implementation using the Daily React library but running into problems with <DailyProvider>.

I have followed the steps to create a private room using the api and retrieve the room url and access token. In the React app I instantiate the callObject via createCallObject() and thencallObject.preAuth({url, token}).

This all appears to be working correctly, and if I inspect the callObject via accessState() I have access {level: "full"} and meetingState() returns "loaded".

However when I pass callObject to <DailyProvider callObject={callObject}></DailyProvider> , the app crashes and I'm getting errors in the console like this one:

Uncaught TypeError: Cannot read properties of undefined (reading 'call').

What am I missing?

Best Answer

  • Tamara
    Tamara Moderator, Dailynista admin
    Answer ✓

    Thanks for the update @jdiz I'm glad you got it working. We have submitted a PR with them to get this fixed in the long term. I'll update the team with your findings as well.