carstenbaumhoegger
07/25/2018, 3:13 PMgraphql-yoga
throws errors I cannot replicate at my local machine.
Maybe someone of you has an idea?
TSError: ⨯ Unable to compile TypeScript:
src/index.ts(10,34): error TS2345: Argument of type '{ typeDefs: string; resolvers: { Query: { me(parent: any, args: any, ctx: Context, info: any): Pr...' is not assignable to parameter of type 'Props<any, any, any>'.
Types of property 'middlewares' are incompatible.
Type 'import("/root/office-drinks/backend/node_modules/graphql-middleware/dist/types").IMiddleware<a...' is not assignable to type 'import("/root/office-drinks/backend/node_modules/graphql-yoga/node_modules/graphql-middleware/...'.
Type 'import("/root/office-drinks/backend/node_modules/graphql-middleware/dist/types").IMiddleware<a...' is not assignable to type 'import("/root/office-drinks/backend/node_modules/graphql-yoga/node_modules/graphql-middleware/...'.
Type 'IMiddlewareFunction<any, any, any>' is not assignable to type 'IMiddleware<any, any, any>'.
Type 'IMiddlewareFunction<any, any, any>' is not assignable to type 'IMiddlewareTypeMap<any, any, any>'.
Index signature is missing in type 'IMiddlewareFunction<any, any, any>'.
Thanks in advance!agartha
07/25/2018, 4:06 PMcarstenbaumhoegger
07/26/2018, 5:58 AMgraphql-middleware
that is installed as a dependency of graphql-yoga
. What has confused me though is, that the package.json of graphql-yoga
and myself have specified the exact same version of graphql-middleware
to be installed…
But now it works so everything is fine 😄
thanks for your answer!