You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GraphQLUpload const type is GraphQLScalarType from the graphql package, but the class does not have the type attribute. However the ObjectTypeComposer.ts class has the type attribute. So during the build process we are getting this error:
Type 'GraphQLScalarType<unknown, unknown>' is not assignable to type 'ObjectTypeComposerArgumentConfig | ObjectTypeComposerArgumentConfigDefinition'.
Property 'type' is missing in type 'GraphQLScalarType<unknown, unknown>' but required in type 'ObjectTypeComposerArgumentConfigAsObjectDefinition'.ts(2322)
ObjectTypeComposer.d.ts(58, 5): 'type' is declared here.
Make sure you use "@types/graphql-upload": "8.0.8". Versions starting from 8.0.9 has "graphql": "^16.2.0" as dependency, which has a different type signature.
I had the same problem, downgraded to 8.0.8 and it works.
Hello @nodkz, see if is possible help us.
The GraphQLUpload const type is GraphQLScalarType from the graphql package, but the class does not have the type attribute. However the ObjectTypeComposer.ts class has the type attribute. So during the build process we are getting this error:
It's my package.json
The text was updated successfully, but these errors were encountered: