-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[SOLVED] Android/iOS build fail w/undefined items/files latest version #4154
Comments
I had this issue with react-native-firebase-storage, and now I am stuck with the same problem on react-native-firebase-firestore. |
For now, downgrading the library version did the trick! |
Sure, but that's not a great solution :-). Hello @biancaFarcasSP and sorry for the hassle.
How is your installation of If we solve that problem, the build will be fine. |
Hi @mikehardy, I'm having similar issues at the moment. How do I see my installation of |
All good! I upgraded all {
"@react-native-firebase/app": "^8.4.0",
"@react-native-firebase/auth": "^9.1.1",
"@react-native-firebase/crashlytics": "^8.4.1",
"@react-native-firebase/dynamic-links": "^7.1.2",
"@react-native-firebase/firestore": "^7.0.1",
"@react-native-firebase/functions": "^7.1.2",
"@react-native-firebase/messaging": "^7.1.5",
"@react-native-firebase/storage": "^7.2.2"
} |
I wonder if this is an npm vs yarn thing? That would not be expected, but software is always capable of surprising me... The structure I'm talking about is:
|
I'm not too sure about npm vs yarn.. What I do know is upgrading |
Yes - a related bug was resolved by someone else by making sure all versions were updated to the same, and were the same across a monorepo (so that different versions didn't get installed in unexpected places - root level or package level) |
@mikehardy I upgraded all firebase dependencies from package.json and it works now. However, it may be a good idea to add a note on Readme about it. It would save others some time if they want to add new firebase module to existing project. |
I agree totally @biancaFarcasSP - first we needed to figure out exactly what was failing though, to provide specific instruction that would work - your success report for that fix is enough to go on in combination with the other reports to do that now I think, thanks for reporting back |
I'm going to alter the title on this one and pin it to top so it's easy for people to see, but I'm also going to resolve this as I think we found the root cause and with peerDependencies set correctly I don't believe it is a code problem specifically, but I did make a docs PR to hopefully publicize it more I appreciate everyone working with me (and each other) on this to try to pin it down If there is some other failure mode besides not upgrading all the packages to follow peerDependencies then I will certainly re-open and we can figure it out |
In my case, it is because my own app's package.json is requiring a lower version of Upgrading the app's package.json's |
This works everytime with firebase .. I know about yarn info |
@sbrighiu I find I think this might help https://www.npmjs.com/package/install-peerdeps but in general the way to find out if your peer dependencies are off is that when you do a |
yeah... but when you're working with react native and expo and .. some old 3rd party packages, it is better to avoid automation :) |
No disagreement from me there @sbrighiu I have these two commands spread out in my monorepo one at top, the rest at package level, one is to scan for what would happen (then I can go see the release notes) and one makes it happen - with a couple specific packages hard-downgraded)
|
uh :( .. add some patch_package patches and this could be fun-er |
Plenty of those. And the work project moves right along. It's all a house of cards though, don't forget |
Here is a nice one :) made it myself also,
|
as it was already mentioned upgrading the packages versions is the solution , dunno what's with the team behind but they pomp new versions almost every week |
It's a massive project, and it's the community mostly proposing PRs, then it's me working to integrate them as quickly as possible and voila, we've got bugfixes and new features coming out all the time :-). I do wish sometimes that the upstream firebase team would slow down a bit, we're still behind them with regards to covering all their APIs... |
I used fixed version in package.json with |
@luatnd that is terrible advice. Update all packages to current stable. Don't downgrade. |
In the past, I have some issue with version conflicting between @react-native-firebase/* packages, |
Version conflict problems happen if you don't upgrade them all. |
Similar issue here.
Module packge versions:
|
@joaom182 old versions, upgrade - the problem will resolve |
Issue
Gradle Task fails on building the app.
A problem occurred configuring project ':@react-native-firebase_ml-vision'.
compileSdkVersion is not specified.
This is happening post release of new version 7.4.1 for @react-native-firebase/ml-vision
Build succeeds when using previous version 7.3.2
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:e.g. 5.4.3
Firebase
module(s) you're using that has the issue:e.g. Instance ID
TypeScript
?Y/N
&VERSION
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: