docs icon indicating copy to clipboard operation
docs copied to clipboard

Flutter Quickstart Gen2 - example will not run

Open andrew-clark-dev opened this issue 1 year ago • 3 comments

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 avatar May 25 '24 10:05 andrew-clark-dev

I can create a PR for this if that is helpful

andrew-clark-dev avatar May 25 '24 10:05 andrew-clark-dev

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 avatar Jun 02 '24 13:06 Nsj94

@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

Nsj94 avatar Jun 04 '24 18:06 Nsj94