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

Flutter Quickstart Gen2 - example will not run #7662

Open
andrew-clark-dev opened this issue May 25, 2024 · 3 comments
Open

Flutter Quickstart Gen2 - example will not run #7662

andrew-clark-dev opened this issue May 25, 2024 · 3 comments

Comments

@andrew-clark-dev
Copy link

Describe the content issue:
When following the quickstart tutorial the code has errors in the main.dart.

This is for 2 reasons:

  1. The 'npx sandbox' command in incorrect. It should be 'npx ampx sandbox --outputs-version 0 --outputs-format dart --outputs-out-dir lib' , accompanied with the note from the auth page
    'Note: when using Amplify Gen 2 with Flutter, you must downgrade the generated client configuration file (amplify_outputs.dart) with --outputs-version 0
    (https://docs.amplify.aws/flutter/reference/cli-commands/#npx-ampx-generate-outputs)'

  2. The line 'await Amplify.configure(outputs);' should be 'await Amplify.configure(amplifyConfig);'

URL page where content issue is:
https://docs.amplify.aws/flutter/start/quickstart/

@andrew-clark-dev
Copy link
Author

I can create a PR for this if that is helpful

@andrew-clark-dev andrew-clark-dev changed the title Flutter Quickstart - example will not run Flutter Quickstart Gen2 - example will not run May 25, 2024
@Nsj94
Copy link

Nsj94 commented Jun 2, 2024

Hi @andrew-clark-dev

while implementing this quickstart when i run this npx script it is giving me
ParameterNotFound: UnknownError

Screenshot 2024-06-02 at 7 02 27 PM

also when if i run this
npx ampx sandbox
still same issue

Any solution

@Nsj94
Copy link

Nsj94 commented Jun 4, 2024

@andrew-clark-dev
Yes i did that npm create amplify@latest command but
This npx command mentioned in the documentation is giving me the error Parameters not found

command is wrong i believe or its paramters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants