Closed nhuesmann closed 3 weeks ago
it should work fine, I'm using it with v51. Have you done a npx expo prebuild --platform ios --clean
?
@nhuesmann any luck?
@MaxAst so sorry I didn't see your reply until now, and thanks so much for your reply. I was able to get it working, but it still doesn't totally make sense why. I had a config file that both the app and share extension use, and that config file imported the expo-updates
library. What is strange is that this wasn't causing any issues for the share extension when running on SDK 50. However, in SDK 51, if I changed things around and got rid of all expo-updates
related imports, the share extension runs again. Nothing changed in my code, and I do run a clean prebuild before every build I create. So I think there's a potential solution if I rework some code to not have any shared expo-updates
imports, but it's just still a little confusing why this would only be a problem on SDK 51.
The pod for expo-updates
is automatically removed by expo-share-extension
, because the setup for enabling EAS updates would have been a lot of work. So I guess it makes sense that JS that depends on expo-updates
would fail when run in the share extension
relevant section in the repo: https://github.com/MaxAst/expo-share-extension/blob/main/plugin/src/withPodfile.ts#L39-L43
will close this for now, lmk if you need further help with this
Everything was working on SDK 50. I upgraded to SDK 51 using Expo's instructions. The app itself works fine. When I try to launch the share extension, I now get this error:
I have tried:
Note that I am in a monorepo but this has never caused issues before. I simply upgraded from SDK 50 to SDK 51, updating package versions and nothing else, and the issue started occurring.
I have tried launching the share extension on both the iOS simulator as well as my physical device, same issue occurs (debug mode and release mode fail).
Here are relevant files:
metro.config.js
index.share.js
index.js
app.json
expo share extension plugin entrypackage.json
for the expo app