You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Upgrade to latest amplify package
Downgrade back to 2.4.1
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
The text was updated successfully, but these errors were encountered:
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?
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
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
Steps to Reproduce
Screenshots
No response
Platforms
Flutter Version
3.24
Amplify Flutter Version
2.4.1
Deployment Method
Amplify Gen 2
Schema
No response
The text was updated successfully, but these errors were encountered: