Code Monkey home page Code Monkey logo

Comments (4)

printSamuel avatar printSamuel commented on August 30, 2024

Hey @sisygoboom,

there are two types of Amplify configuration files... I encountered the same issue while working with Amplify Gen2 and flutter. What helped me was adding:
--outputs-version 0
to my create command.

Complete Command:
npx ampx sandbox --outputs-format dart --outputs-out-dir lib --outputs-version 0

Source:

when using Amplify Gen 2 with Flutter, you must downgrade the generated client configuration file (amplify_outputs.dart) with [--outputs-version 0]

Hope that helps. :-)

from amplify-flutter.

sisygoboom avatar sisygoboom commented on August 30, 2024

Hi @printSamuel, I have been using that command for weeks now and it worked fine until recently. not using --outputs-version 0 creates a completely different file named amplify_output.dart rather than apmlifyconfiguration.dart

from amplify-flutter.

NikaHsn avatar NikaHsn commented on August 30, 2024

@sisygoboom Sorry that you are facing this issue. We will look into this and get back to you when we have updates.

from amplify-flutter.

NikaHsn avatar NikaHsn commented on August 30, 2024

Based on the provided amplifyconfiguration.dart the "OAuth" configuration is missing the "AppClientId" which is a required field. there is an open issue for this aws-amplify/amplify-backend#1551
We also have an open issue for improving error messages of Amplify.configure() API #4922 so I marked this issue as duplicate of #4922
thanks for opening this issue and please feel free to open a new issue if you faced any other problem.

from amplify-flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.