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 · 2 comments
Open

amplify_auth_cognito ^2.6.0, version solving failed #5890

Jukez17 opened this issue Feb 3, 2025 · 2 comments
Labels
pending-maintainer-response Pending response from a maintainer of this repository pending-triage This issue is in the backlog of issues to triage

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-maintainer-response Pending response from a maintainer of this repository pending-triage This issue is in the backlog of issues to triage
Projects
None yet
Development

No branches or pull requests

2 participants