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

amplify_auth_cognito ^2.6.0, version solving failed #5890

Open
Jukez17 opened this issue Feb 3, 2025 · 4 comments
Open

amplify_auth_cognito ^2.6.0, version solving failed #5890

Jukez17 opened this issue Feb 3, 2025 · 4 comments
Assignees
Labels
dependencies Pull requests that update a dependency file question A question about the Amplify Flutter libraries

Comments

@Jukez17
Copy link

Jukez17 commented Feb 3, 2025

I was trying to install the amplify auth cognito but faving an issue with the dependencies of the package if i'm not mistaken. Is there an possibility to update the dependencies or does someone have suggestions on how to solve the issue?

I have tried to lower the sdk version, lower the package version numbers as well but then hit the null safety warnings.

Because amplify_auth_cognito >=2.6.0 depends on amplify_analytics_pinpoint_dart ^0.4.7 which depends on drift >=2.18.0 <2.19.0, amplify_auth_cognito >=2.6.0 requires drift >=2.18.0 <2.19.0.
And because drift >=2.16.0 <2.19.2 depends on web ^0.5.0, amplify_auth_cognito >=2.6.0 requires web ^0.5.0.
And because firebase_messaging_web 3.10.1 depends on web ^1.0.0 and no versions of firebase_messaging_web match >3.10.1 <4.0.0, amplify_auth_cognito >=2.6.0 is incompatible with firebase_messaging_web ^3.10.1.
And because firebase_messaging 15.2.1 depends on firebase_messaging_web ^3.10.1 and no versions of firebase_messaging match >15.2.1 <16.0.0, amplify_auth_cognito >=2.6.0 is incompatible with firebase_messaging ^15.2.1.
So, because testapp depends on both firebase_messaging ^15.2.1 and amplify_auth_cognito ^2.6.0, version solving failed.```
@github-actions github-actions bot added pending-triage This issue is in the backlog of issues to triage pending-maintainer-response Pending response from a maintainer of this repository labels Feb 3, 2025
@CallumHoughton
Copy link

CallumHoughton commented Feb 3, 2025

Also getting the same issue when using drift (ideally it should support drift 2.21.0 - as we can use the new way drift handles migrations).

Resolving dependencies... 
Because no versions of amplify_auth_cognito match >2.6.0 <3.0.0 and amplify_auth_cognito 2.6.0 depends on amplify_analytics_pinpoint_dart ^0.4.7, amplify_auth_cognito ^2.6.0 requires amplify_analytics_pinpoint_dart ^0.4.7.
Because amplify_analytics_pinpoint_dart 0.4.7 depends on drift >=2.18.0 <2.19.0 and no versions of amplify_analytics_pinpoint_dart match >0.4.7 <0.5.0, amplify_analytics_pinpoint_dart ^0.4.7 requires drift >=2.18.0 <2.19.0.
Thus, amplify_auth_cognito ^2.6.0 requires drift >=2.18.0 <2.19.0.
So, because soarvo_flutter_test depends on both amplify_auth_cognito ^2.6.0 and drift ^2.21.0, version solving failed.


You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on drift: flutter pub add drift:^2.18.0

@Jukez17
Copy link
Author

Jukez17 commented Feb 3, 2025

I will give it a try and see what happens.

@tyllark
Copy link
Member

tyllark commented Feb 4, 2025

Hello @Jukez17, this is our highest priority issue and we currently working on a fix for it. Some users have had luck overriding their dependencies in their pubspec.yaml:

dependency_overrides:
  drift: ^2.21.0

We will be providing updates on the release of this fix in this issue

@github-actions github-actions bot removed the pending-maintainer-response Pending response from a maintainer of this repository label Feb 4, 2025
@tyllark tyllark self-assigned this Feb 5, 2025
@tyllark tyllark added the pending-community-response Pending response from the issue opener or other community members label Feb 5, 2025
@ekjotmultani ekjotmultani added dependencies Pull requests that update a dependency file question A question about the Amplify Flutter libraries labels Feb 12, 2025
@github-actions github-actions bot removed the pending-triage This issue is in the backlog of issues to triage label Feb 12, 2025
@charlieforward9
Copy link

Im recieving the same error. Adding it in for visibility and priority bump:

    Because amplify_auth_cognito >=2.6.0 depends on amplify_analytics_pinpoint_dart ^0.4.7 and amplify_auth_cognito >=2.5.0 <2.6.0 depends on amplify_analytics_pinpoint_dart ^0.4.6, amplify_auth_cognito >=2.5.0 requires amplify_analytics_pinpoint_dart ^0.4.6.
(1) So, because amplify_auth_cognito >=2.4.1 <2.5.0 depends on amplify_flutter >=2.4.1 <2.5.0, amplify_auth_cognito >=2.4.1 requires amplify_analytics_pinpoint_dart ^0.4.6 or amplify_flutter >=2.4.1 <2.5.0.

    Because amplify_auth_cognito >=2.4.1 <2.5.0 depends on amplify_analytics_pinpoint_dart ^0.4.5 and amplify_auth_cognito >=2.5.0 <2.6.0 depends on amplify_flutter >=2.5.0 <2.6.0, amplify_auth_cognito >=2.4.1 <2.6.0 requires amplify_analytics_pinpoint_dart ^0.4.5 or amplify_flutter >=2.5.0 <2.6.0.
    And because amplify_auth_cognito >=2.6.0 depends on amplify_flutter >=2.6.0 <2.7.0, amplify_auth_cognito >=2.4.1 requires amplify_flutter >=2.5.0 <2.6.0 or >=2.6.0 <2.7.0 or amplify_analytics_pinpoint_dart ^0.4.5.
    And because amplify_auth_cognito >=2.4.1 requires amplify_analytics_pinpoint_dart ^0.4.6 or amplify_flutter >=2.4.1 <2.5.0 (1), amplify_auth_cognito >=2.4.1 requires amplify_analytics_pinpoint_dart ^0.4.5.
    And because amplify_analytics_pinpoint_dart >=0.4.3 depends on drift >=2.18.0 <2.19.0 and no versions of drift match >2.18.0 <2.19.0, amplify_auth_cognito >=2.4.1 requires drift 2.18.0.
(2) So, because drift 2.18.0 depends on web ^0.5.0 and flutter_inappwebview_web >=1.1.0 depends on web ^1.0.0, amplify_auth_cognito >=2.4.1 is incompatible with flutter_inappwebview_web >=1.1.0.

    Because flutter_inappwebview >=6.2.0-beta.2 depends on flutter_inappwebview_web ^1.2.0-beta.2 and flutter_inappwebview >=6.2.0-beta.1 <6.2.0-beta.2 depends on flutter_inappwebview_web ^1.2.0-beta.1, flutter_inappwebview >=6.2.0-beta.1 requires flutter_inappwebview_web ^1.2.0-beta.1.
    And because kinestex_sdk_flutter >=1.2.0 depends on flutter_inappwebview ^6.1.5 and flutter_inappwebview >=6.1.4 <6.2.0-beta.1 depends on flutter_inappwebview_web ^1.1.2, kinestex_sdk_flutter >=1.2.0 requires flutter_inappwebview_web ^1.1.2.
    And because amplify_auth_cognito >=2.4.1 is incompatible with flutter_inappwebview_web >=1.1.0 (2), amplify_auth_cognito >=2.4.1 is incompatible with kinestex_sdk_flutter >=1.2.0.
    So, because visualpt depends on both amplify_auth_cognito ^2.4.1 and kinestex_sdk_flutter ^1.2.5, version solving failed.

@github-actions github-actions bot added pending-maintainer-response Pending response from a maintainer of this repository and removed pending-community-response Pending response from the issue opener or other community members labels Feb 13, 2025
@tyllark tyllark removed the pending-maintainer-response Pending response from a maintainer of this repository label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file question A question about the Amplify Flutter libraries
Projects
None yet
Development

No branches or pull requests

5 participants