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 Cognito: complie issue #5799

Closed
2 of 14 tasks
iosephmagno opened this issue Jan 11, 2025 · 3 comments
Closed
2 of 14 tasks

Amplify Cognito: complie issue #5799

iosephmagno opened this issue Jan 11, 2025 · 3 comments
Assignees
Labels
auth Issues related to the Auth Category pending-maintainer-response Pending response from a maintainer of this repository question A question about the Amplify Flutter libraries

Comments

@iosephmagno
Copy link

Description

Hello,

After upgrading and then downgrading all the Amplify packages, I encountered the following compile error:

Error (Xcode): ../../.pub-cache/hosted/pub.dev/amplify_auth_cognito-2.4.1/lib/src/credentials/legacy_credential_provider_impl.dart:38:32:
Error: The method 'LegacyCredentialProviderImpl.fetchLegacyCredentials' has fewer positional arguments than the overridden method 'LegacyCredentialProvider.fetchLegacyCredentials'.

I’ve tried cleaning the cache, deleting the .pubspec, Podfile.lock, etc., but nothing seems to resolve the issue.

Do you have any ideas for working around this? And what is the missing argument related to?

Categories

  • Analytics
  • API (REST)
  • API (GraphQL)
  • Auth
  • Authenticator
  • DataStore
  • Notifications (Push)
  • Storage

Steps to Reproduce

  1. Upgrade to latest amplify package
  2. Downgrade back to 2.4.1
  3. Compile

Screenshots

No response

Platforms

  • iOS
  • Android
  • Web
  • macOS
  • Windows
  • Linux

Flutter Version

3.24

Amplify Flutter Version

2.4.1

Deployment Method

Amplify Gen 2

Schema

No response

@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 Jan 11, 2025
@tyllark tyllark self-assigned this Jan 11, 2025
@tyllark
Copy link
Member

tyllark commented Jan 11, 2025

Hello @iosephmagno, thanks for taking the time to open this issue, we will attempt to reproduce the issue on our end and get back to you.

Could you please provide a list of all the Amplify packages included in your pubspec.yaml. Also when you cleared the cache does that mean you ran Flutter clean?

@github-actions github-actions bot removed the pending-maintainer-response Pending response from a maintainer of this repository label Jan 11, 2025
@tyllark tyllark added question A question about the Amplify Flutter libraries auth Issues related to the Auth Category and removed pending-triage This issue is in the backlog of issues to triage labels Jan 11, 2025
@iosephmagno
Copy link
Author

Hello @tyllark I was able to fix after upgrading to 2.4.2. So I guess it was local issue with my cache. Thanks you!

@github-actions github-actions bot added the pending-maintainer-response Pending response from a maintainer of this repository label Jan 12, 2025
Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Issues related to the Auth Category pending-maintainer-response Pending response from a maintainer of this repository question A question about the Amplify Flutter libraries
Projects
None yet
Development

No branches or pull requests

2 participants