serverless-appsync-simulator: Upgrading to 0.7.1 throws Error: GUID must provide "serialize" function
Describe the bug
Upgrading to serverless-appsync-simulator version 0.7.1 has caused the following error to be thrown when running the local server:
Error: GUID must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.
To Reproduce
Upgrade to 0.7.1. Use these dependencies as well
"serverless": "^1.60.0",
"serverless-appsync-plugin": "^1.1.2",
"serverless-appsync-simulator": "^0.7.1",
"serverless-offline": "^5.12.1",
And create a graphql schema making use of only ID, String, Int, Float types and types based off of enums.
We’re also using various aws decorators like @aws_subscribe
Expected behavior The api should start successfully and not die on the error listed above
Screenshots

Additional context I apologize for not providing more info, but I’m not sure where exactly this error is coming from. I’m moreso sharing because I cannot find any information elsewhere, and am wondering if anyone else has the same issue
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 19 (18 by maintainers)
Great thanks @brno32
Closing this issue
I found it! It caused by graphql versions mismatch. I’ve had installed one dependency which used graphql version
0.13.2and I can see that_scalarConfigis present in that old version: https://github.com/graphql/graphql-js/blob/5f50543f7608d52403b1440d1a617626f412a63f/src/type/definition.js#L454So
graphql-scalarswas using that old version becuase in they havegraphql^0.13.0in theirpeerDependencies: https://github.com/Urigo/graphql-scalars/blob/master/package.json#L71I will create an issue in
graphql-scalars.Thanks for help ❤️ and sorry for bothering you @bboure 🙈