Skip to content
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

🐛 [firebase_ui_auth] flutter pub add failed. #10826

Closed
kanryu opened this issue Apr 21, 2023 · 1 comment
Closed

🐛 [firebase_ui_auth] flutter pub add failed. #10826

kanryu opened this issue Apr 21, 2023 · 1 comment
Labels
resolution: duplicate This issue or pull request already exists type: bug Something isn't working

Comments

@kanryu
Copy link

kanryu commented Apr 21, 2023

Bug report

Describe the bug
Adding firebase_ui_auth package fails.

Steps to reproduce

$ flutter create sample
$ cd sample
$ flutter pub get
Resolving dependencies...
  material_color_utilities 0.2.0 (0.3.0 available)
  test_api 0.5.1 (0.5.2 available)
Got dependencies!
$ flutter pub add firebase_ui_auth
    Because firebase_auth >=3.6.2 <3.6.3 depends on firebase_auth_web ^4.2.2 and firebase_auth >=3.6.3 <3.6.4
      depends on firebase_auth_web ^4.2.3, firebase_auth >=3.6.2 <3.6.4 requires firebase_auth_web ^4.2.2.
    And because firebase_auth >=3.6.4 <3.7.0 depends on firebase_auth_web ^4.2.4, firebase_auth >=3.6.2 <3.7.0
      requires firebase_auth_web ^4.2.2.
    And because firebase_auth >=3.7.0 <3.8.0 depends on firebase_auth_web ^4.3.0 and firebase_auth >=3.8.0 <3.9.0
      depends on firebase_auth_web ^4.4.0, firebase_auth >=3.6.2 <3.9.0 requires firebase_auth_web ^4.2.2.
    And because firebase_auth >=3.9.0 <3.10.0 depends on firebase_auth_web ^4.4.1 and firebase_auth >=3.10.0
      <3.11.0 depends on firebase_auth_web ^4.5.0, firebase_auth >=3.6.2 <3.11.0 requires firebase_auth_web ^4.2.2.
    And because firebase_auth >=3.11.0 <3.11.2 depends on firebase_auth_web ^4.6.0 and firebase_ui_auth
      <1.0.0-dev.1 depends on firebase_auth ^3.6.2, firebase_ui_auth <1.0.0-dev.1 requires firebase_auth_web ^4.2.2 or
      firebase_auth ^3.11.2.
    And because firebase_ui_auth >=1.1.10 <1.1.11 depends on firebase_ui_localizations ^1.1.1 and firebase_ui_auth
      >=1.1.8 <1.1.10 depends on firebase_ui_localizations ^1.1.0, firebase_ui_auth <1.0.0-dev.1 or >=1.1.8 <1.1.11-∞
      requires firebase_auth_web ^4.2.2 or firebase_auth ^3.11.2 or firebase_ui_localizations ^1.1.0.
    And because firebase_ui_auth >=1.1.5 <1.1.8 depends on firebase_ui_localizations ^1.0.2 and firebase_ui_auth
      >=1.0.1 <1.1.5 depends on firebase_ui_localizations ^1.0.1, firebase_ui_auth <1.0.0-dev.1 or >=1.0.1 <1.1.11-∞
      requires firebase_auth_web ^4.2.2 or firebase_auth ^3.11.2 or firebase_ui_localizations ^1.0.1.
    And because firebase_ui_auth >=1.0.0 <1.0.1 depends on firebase_ui_localizations ^1.0.0 and firebase_ui_auth
      >=1.0.0-dev.1 <1.0.0 depends on firebase_ui_localizations ^1.0.0-dev.1, firebase_ui_auth <1.1.11 requires
      firebase_auth_web ^4.2.2 or firebase_auth ^3.11.2 or firebase_ui_localizations ^1.0.0-dev.1.
    And because firebase_ui_auth >=1.1.11 <1.2.0 depends on firebase_ui_localizations ^1.2.0 and firebase_auth
      ^3.11.2 depends on firebase_auth_web ^4.6.1, firebase_ui_auth <1.2.0 requires firebase_auth_web ^4.2.2 or
      firebase_ui_localizations ^1.0.0-dev.1.
    And because firebase_auth_web >=1.0.0 <5.2.2 depends on intl ^0.17.0 and firebase_ui_localizations
      >=1.0.0-dev.1 depends on intl ^0.17.0, firebase_ui_auth <1.2.0 requires intl ^0.17.0.
(1) So, because every version of firebase_ui_auth depends on flutter_localizations from sdk which depends on intl
      0.18.0, firebase_ui_auth <1.2.0 is forbidden.

    Because every version of flutter_localizations from sdk depends on intl 0.18.0 and firebase_ui_localizations
      >=1.0.0-dev.1 depends on intl ^0.17.0, flutter_localizations from sdk is incompatible with
      firebase_ui_localizations >=1.0.0-dev.1.
    And because firebase_ui_auth >=1.2.0 depends on firebase_ui_localizations ^1.3.0 and every version of
      firebase_ui_auth depends on flutter_localizations from sdk, firebase_ui_auth >=1.2.0 is forbidden.
    And because firebase_ui_auth <1.2.0 is forbidden (1), firebase_ui_auth is forbidden.
    So, because sample depends on firebase_ui_auth any, version solving failed.

Expected behavior

Added optimal version of firebase_ui_auth

Flutter doctor

Run flutter doctor and paste the output below:

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 3.10.0-3.0.pre.8, on Microsoft Windows [Version 10.0.22621.1555], locale ja-JP)
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.5.3)
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.77.3)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!
@kanryu kanryu added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Apr 21, 2023
@danagbemava-nc danagbemava-nc added the triage Issue is currently being triaged. label Apr 21, 2023
@danagbemava-nc
Copy link

Hi @kanryu,
please check #10199 (comment) issue comment for current workaround.

There's an open PR to upgrade intl to latest version that you can track for further updates: #10317

Since you are on the master channel, you can either force intl to version 0.18.0 using dependency_overrides as pointed out in #10199 (comment) or you can switch to the stable version.

Unfortunately, until a version of flutter stable has been published that uses intl: 0.18.0, the plugins cannot be updated.

Closing this as a duplicate of #10199.

Thank you

@danagbemava-nc danagbemava-nc closed this as not planned Won't fix, can't repro, duplicate, stale Apr 21, 2023
@danagbemava-nc danagbemava-nc 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 Apr 21, 2023
@firebase firebase locked and limited conversation to collaborators Jun 1, 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

2 participants