-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
AppSync Simulator: TypeError: Cannot convert undefined or null to object #170
Comments
Also found this question: https://stackoverflow.com/questions/72695038/appsync-simulator-typeerror-cannot-convert-undefined-or-null-to-object The solution did not resolve it for me |
I ran into the same issue. The solution proposed at https://stackoverflow.com/questions/72695038/appsync-simulator-typeerror-cannot-convert-undefined-or-null-to-object (downgrading cfn-resolver-lib from 1.1.8 to 1.1.7) did resolve the issue in my case. |
Thank you for responding I finally fixed it.. Had to switch to |
I don't have |
Just started a new project and get this error also. Any updates? |
I'm using yarn, so I added the following to my package.json to force the use of the previous version of cfn-resolver-lib:
Not sure what the equivalent would be with npm. |
Another option is to update
|
Thank you @katesclau Could you open a PR to fix this? That would be great. Thanks |
in npm I just installed cfn-resolver-lib "1.1.7" explicitly and it helped |
I can also confirm adding: npm i [email protected] --save-dev solves the issue! |
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
added a
schema.graphql
in the rootAdded the plugins in following order:
Expected behavior
I expect it to spit out the urls like this:
Versions:
The text was updated successfully, but these errors were encountered: