-
-
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
Upgrading to 0.7.1 throws Error: GUID must provide "serialize" function #53
Comments
I also got the same error when upgrading from |
@brno32 Thanks for opening this issue. Error seems to come from It looks like it is from this module https://www.npmjs.com/package/src but looking at the source, I doubt it. |
Thanks @FilipPyrek for confirming this. |
@bboure "serverless-appsync-simulator": {
"version": "0.7.1",
"resolved": "https://registry.npmjs.org/serverless-appsync-simulator/-/serverless-appsync-simulator-0.7.1.tgz",
"integrity": "sha512-onos8JKuuoy9Dcux+VEWPHvm9su6dninGH18UOEqY/3jUmAOSFPpsYgPhZ4zLsdhZXuxbgFVNvxZjtm6ckMk/A==",
"dev": true,
"requires": {
"amplify-appsync-simulator": "^1.23.3",
"amplify-nodejs-function-runtime-provider": "^1.1.5",
"aws-sdk": "^2.720.0",
"axios": "^0.19.2",
"cfn-resolver-lib": "^1.1.6",
"dataloader": "^2.0.0",
"lodash": "^4.17.19",
"merge-graphql-schemas": "^1.5.8"
}, And I saw there: Then I also found in the same "amplify-appsync-simulator": {
"version": "1.23.9",
"resolved": "https://registry.npmjs.org/amplify-appsync-simulator/-/amplify-appsync-simulator-1.23.9.tgz",
"integrity": "sha512-iC9bzW3KMb33VlNJ6QN9oSwDzMUnKlvlNHfT9PXP15lY7jl1hXoKqbh0SrJw1UJl2kILWinQZQgVBrAII85Cow==",
"dev": true, We can see there When I tried removing this 👆 record in And according to amplify-appsync-simulator/CHANGELOG.md I can see that in version And I can see in the stack trace:
that the error comes also through So according to my findings it seems that aws-amplify/amplify-cli#5705 caused this issue. 🤔 🤷♂️ |
Thanks for these detailed info @FilipPyrek However, I am still not reproducing the error. What troubles me is that I cannot find the following file in my node_modules: are you? |
What do you see when you run the following command?
|
IMO the issue with Output of
Also I can see that |
When upgrading to "graphql-scalars": {
- "version": "1.2.6",
+ "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/graphql-scalars/-/graphql-scalars-1.2.6.tgz",
+ "resolved": "https://registry.npmjs.org/graphql-scalars/-/graphql-scalars-1.4.1.tgz",
- "integrity": "sha512-k/88kZVXIuUKQuVLokokkKU2lnFEZ9aTn7O0fDweJpISd0pP5fQU1wzPN0jarH4Lnadr4092PfyIUtCcKzkeAw==",
+ "integrity": "sha512-QCT9sHYkEns9jp3fYqzmoUtS7GiWn+IKrWvSKYDrGOEqlUVP66DDtR0HQmebIbnaSuww239drYnq6JNP0VIDTg==",
"dev": true
}, |
yes, this is also what I figured out. I am also on the same versions now
Still no error on my side. |
My schema is quite simple schema {
query: Query
mutation: Mutation
}
type Query {
triggers(organisation: ID!, namespace: ID!): [Trigger!]!
namespaces(organisation: ID!): [String!]!
}
type Mutation {
runTrigger(id: ID!): TriggerRunResponse!
}
type Trigger {
id: ID!
arn: String!
label: String!
}
type TriggerRunResponse {
message: String
error: String
} I tried replacing |
Thanks. Still no luck on my side after creating a fresh new project. could you try to
then npm install again and see if the problem persists. |
My findings: I cloned {
name: 'GUID',
description: 'A field whose value is a generic Universally Unique Identifier: https://en.wikipedia.org/wiki/Universally_unique_identifier.',
serialize: [Function: serialize],
parseValue: [Function: parseValue],
parseLiteral: [Function: parseLiteral]
} when I did it in node_modules of the project and then I started {
name: 'GUID',
description: 'A field whose value is a generic Universally Unique Identifier: https://en.wikipedia.org/wiki/Universally_unique_identifier.',
astNode: undefined,
_scalarConfig: {
name: 'UUID',
description: 'A field whose value is a generic Universally Unique Identifier: https://en.wikipedia.org/wiki/Universally_unique_identifier.',
serialize: [Function: serialize],
parseValue: [Function: parseValue],
parseLiteral: [Function: parseLiteral]
}
} Which is quite strange. I'm going to proceed to package-lock suggestion of yours @bboure |
I found it! So I will create an issue in Thanks for help ❤️ and sorry for bothering you @bboure 🙈 |
Great job!
What is your dependency that is using an old version of graphql ? |
It was this old deprecated package |
Here is the issue in |
Thanks for feedback @FilipPyrek @brno32 Does that help into fixing your issue? |
I removed |
Great thanks @brno32 Closing this issue |
Describe the bug
Upgrading to
serverless-appsync-simulator
version0.7.1
has caused the following error to be thrown when running the local server:To Reproduce
Upgrade to
0.7.1
. Use these dependencies as wellAnd create a graphql schema making use of only
ID
,String,
Int
,Float
types and types based off ofenum
s.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
The text was updated successfully, but these errors were encountered: