Closed badhrin closed 7 months ago
Hi @badhrin,
It looks like one of our user has already faced this same issue while migrating to Expo 50. More details here.
And to solve this, they needed to upgrade the event-target-shim
version to match the same one requested by react-native-webrtc
, version 6.0.2
. More details here.
Let me know if this will fix your issue as well.
You can also take a look in our demo app, which is already using Expo 50.
@filipi87 - Thank you for the response. Fixed the issue. To help others in the future, please see if you can update the documentation at https://www.npmjs.com/package/@daily-co/config-plugin-rn-daily-js to include this 'event-target-shim' version check.
I will rebuild completely, test & then close this issue if all works. Please give me a day. Thanks.
@filipi87 - Thank you for the response. Fixed the issue. To help others in the future, please see if you can update the documentation at https://www.npmjs.com/package/@daily-co/config-plugin-rn-daily-js to include this 'event-target-shim' version check.
I will rebuild completely, test & then close this issue if all works. Please give me a day. Thanks.
@filipi87 - Thank you. Tested it & updating 'event-target-shim' fixed the issue.
That is great to hear @badhrin. And thanks for your suggestion, I will add a troubleshooting session inside our plugin. 🙂
Base code was a fully working Android App using Expo SDK 49 & Expo Router V2 that uses Daily successfully. There has been no change to the working code. Issue happened on upgrade to Expo SDK 50 & Expo Router V3.
Expected Behaviour: Successful build & loading of App
Bug / Unexpected Behaviour ISSUE 1: Instead of a successful build & loading of app, I am getting an error when I load the app using 'npx expo start' :
RELATED ISSUE 2: Further, any component (even a dummy component with no logic) that imports Daily or DailyMediaView results in WARNING :
Both the Issue 1 (Error) & Issue 2 (Warning) go away if we remove the Import statement of Daily & DailyMediaView from the component.
My import statement of Daily looks like this:
The above import statement worked without any issues in Expo SDK 49 and Expo Router V2.
System information
Tried to use the react-native-daily-js@0.60.0, but same issue happens