Closed arham-aiow closed 2 years ago
Hi @arham-aiow ,
For validate the react-native-daily-js
, we always use our playground app: https://github.com/daily-co/react-native-daily-js-playground
The current version of the playground is using:
I have just tried to reproduce the issue here, but I have not been able to reproduce the issue that you are facing.
I have created an environment as you have described, just the Xcode that I am using a newer version: Xcode 13 on Mac with M1 pro chip. Device: iOS simulator (iPhone 11) OS, version: iOS 15.4
Hi @filipi87, Thanks for your response on this. I've finally managed to get it working on my project. Here's what didn't work:
daily-js
lib in the node_modules
folder to see if there might be any issues in the dist
react-native-daily-js
versions to various versions.env
file to the root, installing dotenv
, updating the start script to add a NODE_ENV
tagAfter a tough ordeal of trying to make it all work and making all these changes on a mature project, what finally worked was commenting out the cwd
entry frommodule-resolver
inbabel.config.js
Hi @arham-aiow,
Great, glad you have made It work, and thanks for the feedback about your journey to make It work.
Let us know if you need any help!
Expected behavior
The app builds fine, but when I try launching it, it throws the following error and prevents the main view from loading.
node_modules/@daily-co/daily-js/dist/daily-iframe.js: /Users/abcd/Data/abcd/mobile/node_modules/@daily-co/daily-js/dist/daily-iframe.js: Cannot read properties of undefined (reading 'env')
Screenshots
System information
Building on Xcode 12 on Mac with M1 pro chip
* Device: iOS simulator (iPhone 11) * OS, version: iOS 15.4