New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EAS Build] - Expo SDK 47 + expo-image "No package name found" #23409
Comments
Here is another repo from 4 months ago, using expo-image and SDK 47 https://github.com/GILJINHYUNG/reactnative_movie/blob/main/package.json. And here there is another guy using expo-image on SDK 46 https://github.com/rickithadi/budding/blob/main/package.json |
This is the
|
It seems the problem is caused because of this commit 3a04781 (?) |
hi there! yes, expo-image@1.2.1 does not officially support expo sdk 47. the problem is that the old react-native-community cli autolinking does not support the new format without package in AndroidManifest.xml. if you really want to use the expo-image on sdk 47, please use patch-package and revert the changes from 3a04781 |
Can you please elaborate on the solution? What specifically needs to be done to resolve this? |
@iodriller @rc-markzhou I solved the issue upgrading to Expo SDK 48 and stop using Firebase JS SDK. Migrating to react-native-firebase, imo, has been the best decision of my week. But, you can also upgrade to Expo SDK 48, and use Firebase 10.0.0, which also offers the namespaced API in the “compat” folder. |
@VictorioMolina Thanks for this. Migrating to react-native-firebase means no more expo go. I heavily use expo go during development. I tried the namespaced API with compat, however some things such as auth, didn't work properly for me. Migrating to Firebase 10 will cost me days if not weeks.. @Kudo Is there any documentation on how to "use patch-package and revert the changes". How can we resolve this issue? (In my case it is not expo-image, but some other library that I couldn't pinpoint exactly..) |
@iodriller I have been using Firebase JS SDK with Expo for more than 3 years now, and the main problems I have detected are related to DB and auth persistence. Upgrading to react-native-firebase is my recommendation, might be quite hard to integrate EAS if it is your first time, but you just have to configure a In the other hand, if you want to continue using Expo Go, then consider upgrading to Firebase 10.0.0 before patching (it’s like doing extra work, you will end up upgrading in the future). The only problem with Firebase 10.0.0, if you are using the namespaced API (compat), is that firebase auth still uses AsyncStorage from “react-native” and not from “react-native-community”. Just try opening an issue in the Firebase JS SDK repo, or use an hybrid API (modular for authentication, and compat for the rest). At the end, it’s just changing your auth module and updating your imports, as it says in the Firebase documentation. Honestly, I tried it (but decided to migrate to react-native-firebase because don’t like combining modular with namespaced) and it barely took me one/two hours (although I thought, at first, that it would take days). |
Minimal reproducible example
Install Expo SDK 47.0.0 and expo-image 1.2.1. Then, run "yarn build-dev:ios" (EAS dev build).
Summary
7 days ago I compiled my app, which uses Expo SDK 47 and expo-image successfully... Today, with the exactly same code, the build fails on pods installation.
For me, it is a required to use expo-image and Expo SDK 47. I cannot upgrade to Expo SDK 48 because I use the non-modular version of Firebase JS SDK (prior to Firebase JS v9.0.0) which imports AsyncStorage from "react-native", and it has been deprecated in the new architecture...
If I do not remember bad, I have seen some repos using expo-image with Expo SDK 46 & 47. And my last week compilation (with SDK 47) doesn't crash when rendering an expo-image component.
After running EAS build, I get the following error:
There is another person getting a similar issue.
Any ideas whats going on? This is my package.json:
Environment
I have tried with
eas-cli@3.13.3
, which was the same version I was using last week, and the latest version ofeas-cli
, 3.15.0.The text was updated successfully, but these errors were encountered: