aws-amplify / amplify-cli

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.
Apache License 2.0
2.82k stars 820 forks source link

"Invalid or unexpected token" when running "amplify graphql-seed run" extension #13899

Closed matthew-oneill closed 2 months ago

matthew-oneill commented 2 months ago

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

20.11.1

Amplify CLI Version

12.12.6 (also tested by reverting to 7.26)

What operating system are you using?

WSL2 Ubuntu

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

No manual changes made

Describe the bug

When attempting to run the amplify graphql-seed extenstion via the amplify graphql-seed run command receiving Invalid or unexpected token error. This is occurring both locally and in the remote pipeline. We were previously using the extension without issue.

Logs do not show any further information.

Expected behavior

Extension should run and seed dynamodb tables

Reproduction steps

Have tested initializing an empty amplify project with the extension and the same error occurs.

  1. amplify init
  2. npm install -g amplify-graphql-seed-plugin
  3. amplify plugin add amplify-graphql-seed-plugin
  4. amplify graphql-seed init
  5. amplify graphql-seed run

Project Identifier

9a4a8c6a9fba58492d03474835b8b2b3

Log output

``` # Put your logs below this line ```

Additional information

No response

Before submitting, please confirm:

ykethan commented 2 months ago

Hey @matthew-oneill, thank you for reaching out. Noticed a similar issue on the amplify-graphql-seed-plugin repository: https://github.com/awslabs/amplify-graphql-seed-plugin/issues/39. As this is a third part plugin I would suggest reaching out on amplify-graphql-seed-plugin repository.

github-actions[bot] commented 2 months ago

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.