-
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
[🐛] v20 installs subpackages as deps, regressed from v19 #7995
Comments
Hey @safaiyeh - thanks for reporting this. It is dues to pulling in the firebase dependency for app here which allows macOS beta support https://github.com/invertase/react-native-firebase/blob/main/packages/app/package.json#L60 I'll have to think about what we do as I'm not sure it is advisable to separate the packages as described on the npm page: https://www.npmjs.com/package/@firebase/app |
@safaiyeh - Are you developing on macOS platform? Assuming you are not using macOS, you might be able to stop the packages from being installed. It seems it isn't the easiest with yarn however: yarnpkg/yarn#4611 FYI; the additional packages are not RNFB packages, but they are the firebase web packages: https://www.npmjs.com/package/firebase |
@russellwheatley That is correct, I'm not developing on macOS - just iOS / Android. Thanks for the context, looks like there weren't any changes to the build system for RNFB. The root cause is from Firebase itself? I can open a ticket on the Firebase repo as a follow up |
This isn't a firebase issue, RNFB app package has firebase web as a dependency for macOS support: https://github.com/invertase/react-native-firebase/blob/main/packages/app/package.json#L60 |
Hello 👋, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
Thank you for your contributions. |
still require attention |
Issue
In the process of integrating react-native-firebase in a project with a tight dependency security model. When integrating React Native Firebase v19, the dependencies installed were reasonable and you can selectively install the Firebase modules you need for your project.
However, in v20 setting up the project installs all the sub modules react-native-firebase offers.
Project Files
Javascript
Click To Expand
yarn.lock diff
:v20: safaiyeh/react-native-firebase-v20@db3d4f0
v19: safaiyeh/react-native-firebase-v19@f979c44
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:Firebase
module(s) you're using that has the issue:TypeScript
?React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: