Skip to content

AppSync Simulator: TypeError: Cannot convert undefined or null to object #170

@jamsmd

Description

@jamsmd

Describe the bug
When following these steps: https://www.npmjs.com/package/serverless-appsync-simulator
I try to run sls offline start and it gives me the following error: AppSync Simulator: TypeError: Cannot convert undefined or null to object

To Reproduce
I created a new serverless project with the aws-http-api template.
Follow these steps: https://www.npmjs.com/package/serverless-appsync-simulator

So I ran

yarn install -D serverless-appsync-simulator serverless-offline serverless-dynamodb-local serverless-appsync-plugin

added a schema.graphql in the root

Added the plugins in following order:

plugins:
  - serverless-dynamodb-local # only if you need dynamodb resolvers and you don't have an external dynamodb
  - serverless-appsync-plugin
  - serverless-appsync-simulator
  - serverless-offline

Expected behavior
I expect it to spit out the urls like this:
image

Versions:

    "serverless-appsync-plugin": "^1.13.0",
    "serverless-appsync-simulator": "^0.20.0",
    "serverless-dynamodb-local": "^0.2.40",
    "serverless-offline": "^8.8.0"


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions