I just upgraded from Expo 47 to 50 and as part of upgrade, made proper changes to enable Hermes JS engine. I am using expo-dev-client to create development builds and so, in my Podfile.properties.json I have the following code now:
I have added import 'react-native-polyfill-globals/auto'; to my App.js file as well. When I remove it, application builds successfully, but streaming doesn't work. Then as soon as I add it, I see the error below:
The whole thing was working fine with Expo47 which used jsc engine, but now is crashing with Hermes. I am using the pollyfill to allow streaming with my fetch requests.
I just upgraded from Expo 47 to 50 and as part of upgrade, made proper changes to enable Hermes JS engine. I am using expo-dev-client to create development builds and so, in my
Podfile.properties.json
I have the following code now:Similarly in my gradle.properties, I now have this:
You can see a list of all the changes here: https://docs.expo.dev/bare/upgrade/?fromSdk=47&toSdk=50
With these changes made, now I am getting the error mentioned in the title of this issue:
I have installed react-native-polyfill-globals and all the dependencies as you see in my package.json file below:
I have added
import 'react-native-polyfill-globals/auto';
to my App.js file as well. When I remove it, application builds successfully, but streaming doesn't work. Then as soon as I add it, I see the error below:The whole thing was working fine with Expo47 which used jsc engine, but now is crashing with Hermes. I am using the pollyfill to allow streaming with my fetch requests.
Any idea how this can be fixed?