aws-amplify / docs

AWS Amplify Framework Documentation
https://docs.amplify.aws
Apache License 2.0
482 stars 1.04k forks source link

Flutter Quickstart Gen2 - example will not run #7662

Open andrew-clark-dev opened 4 months ago

andrew-clark-dev commented 4 months ago

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 commented 4 months ago

I can create a PR for this if that is helpful

Nsj94 commented 4 months ago

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 commented 4 months ago

@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