Skip to content

🐛 [firebase_auth] Version 4.5.0 depends on firebase_auth_web ^5.4.0, which depends on intl ^0.17.0 #10938

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

Closed
carloshpb opened this issue May 11, 2023 · 10 comments
Labels
resolution: duplicate This issue or pull request already exists type: bug Something isn't working

Comments

@carloshpb
Copy link

carloshpb commented May 11, 2023

Bug report

Resolving dependencies...
Because no versions of firebase_auth match >4.5.0 <5.0.0 and firebase_auth 4.5.0 depends on firebase_auth_web ^5.4.0, firebase_auth ^4.5.0 requires firebase_auth_web ^5.4.0.
Because firebase_auth_web 5.4.0 depends on intl ^0.17.0 and no versions of firebase_auth_web match >5.4.0 <6.0.0, firebase_auth_web ^5.4.0 requires intl ^0.17.0.
Thus, firebase_auth ^4.5.0 requires intl ^0.17.0.
So, because __ depends on both firebase_auth ^4.5.0 and intl ^0.18.1, version solving failed.

Steps to reproduce

Steps to reproduce the behavior:

  1. Simply try to updated firebase_auth while having intl version to 0.18.1, which is the one for Dart 3

Expected behavior

Shouldn't have conflict with intl version 0.18.1

@carloshpb carloshpb added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels May 11, 2023
@Patrick386
Copy link

Same issue.
Because no versions of firebase_auth match >4.5.0 <5.0.0 and firebase_auth 4.5.0 depends on firebase_auth_web ^5.4.0, firebase_auth ^4.5.0 requires firebase_auth_web ^5.4.0.
Because firebase_auth_web 5.4.0 depends on intl ^0.17.0 and no versions of firebase_auth_web match >5.4.0 <6.0.0, firebase_auth_web ^5.4.0 requires intl ^0.17.0.
Thus, firebase_auth ^4.5.0 requires intl ^0.17.0.
So, because __ depends on both intl ^0.18.0 and firebase_auth ^4.5.0, version solving failed.

@mdddj
Copy link

mdddj commented May 11, 2023

dependency_overrides:
  intl: 0.18.0

Solved my problem

@BirjuVachhani
Copy link

BirjuVachhani commented May 11, 2023

This doesn't solve the problem for me unfortunately. I use wiredash and it creates conflicts with this for some reason.

Because wiredash >=1.0.0-alpha.2 depends on flutter_localizations from sdk which depends on intl 0.18.0, wiredash >=1.0.0-alpha.2 requires intl 0.18.0.
Because firebase_auth_web 5.4.0 depends on intl ^0.17.0 and no versions of firebase_auth_web match >5.4.0 <6.0.0, firebase_auth_web ^5.4.0 requires intl ^0.17.0.
Thus, wiredash >=1.0.0-alpha.2 is incompatible with firebase_auth_web ^5.4.0.
And because firebase_auth 4.5.0 depends on firebase_auth_web ^5.4.0 and no versions of firebase_auth match >4.5.0 <5.0.0, wiredash >=1.0.0-alpha.2 is incompatible with firebase_auth ^4.5.0.
So, because codelessly depends on both firebase_auth ^4.5.0 and wiredash ^1.6.0, version solving failed.

@immadisairaj
Copy link

Maybe to add some more context on firebase_ui_auth as well that I am currently facing after upgrading all my firebase packages.

Because no versions of firebase_ui_auth match >1.3.0 <2.0.0 and firebase_ui_auth 1.3.0 depends on flutter_localizations from sdk, firebase_ui_auth ^1.3.0 requires flutter_localizations from sdk.
And because every version of flutter_localizations from sdk depends on intl 0.18.0, firebase_ui_auth ^1.3.0 requires intl 0.18.0.
And because firebase_auth_web 5.4.0 depends on intl ^0.17.0 and no versions of firebase_auth_web match >5.4.0 <6.0.0, firebase_ui_auth ^1.3.0 is incompatible with firebase_auth_web ^5.4.0.
And because firebase_auth 4.5.0 depends on firebase_auth_web ^5.4.0 and no versions of firebase_auth match >4.5.0 <5.0.0, firebase_ui_auth ^1.3.0 is incompatible with firebase_auth ^4.5.0.
Packages (and their versions) I am using

cloud_firestore: ^4.6.0
firebase_auth: ^4.5.0
firebase_core: ^2.11.0
firebase_ui_auth: ^1.3.0
firebase_ui_firestore: ^1.4.0
firebase_ui_oauth_google: ^1.1.5

@rayk
Copy link

rayk commented May 11, 2023

dependency_overrides:
  intl: 0.18.0

Solved my problem

This will work if you don't depend on flutter_localizations and SDK is at 3.0.0. So the problem for any working off stable with an intl app.

@immadisairaj
Copy link

immadisairaj commented May 11, 2023

Yeah, that solved.. and the thing regarding flutter_localizations I solved it by adding it to the pubspec.

dependencies:
  # for localizations (firebase_ui_auth uses)
  flutter_localizations:
      sdk: flutter

# for rest
dependency_overrides:
  intl: 0.18.0

@krunalSutariya
Copy link

krunalSutariya commented May 11, 2023

dependency_overrides:
  intl: 0.18.0

Solved my problem

@darshankawar darshankawar added the triage Issue is currently being triaged. label May 11, 2023
@darshankawar
Copy link

To everyone facing this issue, there's already a similar open issue describing the case: #10199
And most recent comment indicates a fix is in sight: #10199 (comment) so please follow-up in the linked issue for further updates. I'll close this as a duplicate. If anyone disagrees, write in comments and I'll reopen it.

@darshankawar darshankawar added resolution: duplicate This issue or pull request already exists and removed Needs Attention This issue needs maintainer attention. triage Issue is currently being triaged. labels May 11, 2023
@BirjuVachhani
Copy link

Yeah, that solved.. and the thing regarding flutter_localizations I solved it by adding it to the pubspec.

dependencies:
  # for localizations (firebase_ui_auth uses)
  flutter_localizations:
      sdk: flutter

# for rest
dependency_overrides:
  intl: 0.18.0

This worked for me. However, my project uses melos and one of the deployed sub-packages uses older version of intl (0.17.0) and for some reason, melos doesn't seem to work with it. I had to manually create pubspec_overrides.yaml.

@carloshpb
Copy link
Author

Nevermind guys. New updated was just launched right now. Just update your firebase_auth to 4.6.0, and let intl be 1.8.0, that it'll work out.

@firebase firebase locked and limited conversation to collaborators Jun 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: duplicate This issue or pull request already exists type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants