Skip to content

Incompatible types with apollo-server-express 2.12.0 #6

Description

@darky
Type 'import("/Users/vladislavbotvin/Projects/bla-bla/node_modules/apollo-server-express/dist/ApolloServer").ApolloServer' is not assignable to type 'import("/Users/vladislavbotvin/Projects/bla-bla/node_modules/apollo-server-integration-testing/node_modules/apollo-server-express/dist/ApolloServer").ApolloServer'.
  The types returned by 'createGraphQLServerOptions(...)' are incompatible between these types.
    Type 'Promise<import("/Users/vladislavbotvin/Projects/bla-bla/node_modules/apollo-server-express/node_modules/apollo-server-core/dist/graphqlOptions").GraphQLServerOptions<Record<string, any>, any>>' is not assignable to type 'Promise<import("/Users/vladislavbotvin/Projects/bla-bla/node_modules/apollo-server-core/dist/graphqlOptions").GraphQLServerOptions<Record<string, any>, any>>'.
      Type 'import("/Users/vladislavbotvin/Projects/bla-bla/node_modules/apollo-server-express/node_modules/apollo-server-core/dist/graphqlOptions").GraphQLServerOptions<Record<string, any>, any>' is not assignable to type 'import("/Users/vladislavbotvin/Projects/bla-bla/node_modules/apollo-server-core/dist/graphqlOptions").GraphQLServerOptions<Record<string, any>, any>'.
        Types of property 'executor' are incompatible.
          Type 'import("/Users/vladislavbotvin/Projects/bla-bla/node_modules/apollo-server-express/node_modules/apollo-server-types/dist/index").GraphQLExecutor<Record<string, any>> | undefined' is not assignable to type 'import("/Users/vladislavbotvin/Projects/bla-bla/node_modules/apollo-server-types/dist/index").GraphQLExecutor<Record<string, any>> | undefined'.
            Type 'import("/Users/vladislavbotvin/Projects/bla-bla/node_modules/apollo-server-express/node_modules/apollo-server-types/dist/index").GraphQLExecutor<Record<string, any>>' is not assignable to type 'import("/Users/vladislavbotvin/Projects/bla-bla/node_modules/apollo-server-types/dist/index").GraphQLExecutor<Record<string, any>>'.
              Types of parameters 'requestContext' and 'requestContext' are incompatible.
                Type 'WithRequired<GraphQLRequestContext<Record<string, any>>, "queryHash" | "document" | "operation" | "operationName">' is not assignable to type 'GraphQLRequestContextExecutionDidStart<Record<string, any>>'.
                  Property 'logger' is missing in type 'GraphQLRequestContext<Record<string, any>> & Required<Pick<GraphQLRequestContext<Record<string, any>>, "queryHash" | "document" | "operation" | "operationName">>' but required in type 'GraphQLRequestContext<Record<string, any>>'.ts(2322)
index.d.ts(51, 5): 'logger' is declared here.
index.d.ts(9, 5): The expected type comes from property 'apolloServer' which is declared here on type 'TestClientConfig'

2.11.0 version fine

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions