-
Notifications
You must be signed in to change notification settings - Fork 893
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
Regression (v10): fresh firebase installation has peerDep error on react-native? #7522
Comments
Yes, so see that issue for why we added Fortunately, it's just a warning and shouldn't block development. I do think it's a bad situation for a React-Native-related warning to impact the majority of auth users who have nothing to do with React Native, and we'll do our best to try to find a way to remove it. I can't currently think of a way, however. We could convert the |
npm@9 installs peerdeps by default so this actually ends up installing react-native for end users |
And indeed this broke various things in our monorepo when upgrading, since |
I'm not sure how to solve this except for going back to the old way of requiring RN users to manually import and include |
Make it a peerDependency and mark it as optional: https://docs.npmjs.com/cli/v9/configuring-npm/package-json#peerdependenciesmeta |
Sure, but that's still going to be a "breaking change" for any RN users who are currently using getAuth(), as they'll have to manually install Before making it a peerDependency (as opposed to removing it as a dependency altogether) I want to double check it won't cause a problem for pnpm or yarn 2/3 or any other package installers. I know pnpm can be very strict. |
I'm hesitant about making it an optional peerDependency because I've seen issue reports like this NextJS issue: vercel/next.js#7621 where users are still getting a warning on an optional peerDependency and aren't happy about it. I think we may just have to remove it altogether and rely on the warning/documentation to tell RN users to add it. |
I did some more investigation and found that the NextJS "encoding" issue is not related to package installers or the package.json in any way and is caused by |
It's been removed as a See the release notes for how this change affects React Native users: https://firebase.google.com/support/release-notes/js#version_1030_-_august_22_2023 |
Hi. I'm coming from this release note. I'm using Expo@48 and [email protected] . |
Just upgraded to 10.4 from 9.23 and our app crashes now due to some error in Firebase auth. Unfortunately Hermes gives such crappy error messages that that's really all I can say. We get: We're using the Auth as specified here: https://firebase.google.com/support/release-notes/js#authentication For what it's worth we use Yarn 1.x |
Operating System
Fedora 38
Browser Version
N/A
Firebase SDK Version
10.1.0
Firebase SDK Product:
Irrelevant
Describe your project's tooling
Irrelevant
Describe the problem
Saw this after upgrading from v9 to v10.1.0 (now that firebaseui is compatible)
Upon installation, the following peerDep warning appears:
warning "firebase > @firebase/auth > @react-native-async-storage/[email protected]" has unmet peer dependency "react-native@^0.0.0-0 || 0.60 - 0.72 || 1000.0.0".
Steps and code to reproduce issue
The text was updated successfully, but these errors were encountered: