A value of type 'String?' can't be returned from a function with return type 'String' because 'String?' is nullable and 'String' isn't #5555
Labels
core
Issues related to the Amplify Core Plugin
pending-community-response
Pending response from the issue opener or other community members
question
A question about the Amplify Flutter libraries
Description
These are the packages in the pubspec.yaml
amplify_flutter:
amplify_auth_cognito:
amplify_authenticator:
amplify_storage_s3: ^2.4.0
amplify_core: ^2.4.0
when running/debugging the app this error is given -
Launching lib/main_development.dart on iPhone 15 in debug mode...
Xcode build done. 39.6s
Failed to build iOS app
Error (Xcode): ../../../../.pub-cache/hosted/pub.dev/amplify_core-2.4.1/lib/src/config/amplify_outputs/auth/auth_outputs.g.dart:16:61: Error: A value of type 'String?' can't be returned from a function with return type 'String' because 'String?' is nullable and 'String' isn't.
Could not build the application for the simulator.
Error launching application on iPhone 15.
Exited (1).
Categories
Steps to Reproduce
Just run/debug app.
Screenshots
Platforms
Flutter Version
3.24.3
Amplify Flutter Version
2.4.0
Deployment Method
Amplify Gen 2
Schema
No response
The text was updated successfully, but these errors were encountered: