question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Type error in apollo-server@^2.4.6

See original GitHub issue

Hello,

Running apollo-opentracing@^1.2.0 with apollo-server@^2.4.6 I receive the following type error:

Type '(() => OpentracingExtension<any>)[]' is not assignable to type '(() => GraphQLExtension<any>)[]'.
  Type '() => OpentracingExtension<any>' is not assignable to type '() => GraphQLExtension<any>'.
    Type 'OpentracingExtension<any>' is not assignable to type 'GraphQLExtension<any>'.
      Types of property 'requestDidStart' are incompatible.
        Type '(infos: RequestStart) => (() => void) | undefined' is not assignable to type '(o: { request: Pick<Request, "url" | "method" | "headers">; queryString?: string | undefined; parsedQuery?: DocumentNode | undefined; operationName?: string | undefined; variables?: { ...; } | undefined; persistedQueryHit?: boolean | undefined; persistedQueryRegister?: boolean | undefined; context: any; requestConte...'.
          Types of parameters 'infos' and 'o' are incompatible.
            Type '{ request: Pick<Request, "url" | "method" | "headers">; queryString?: string | undefined; parsedQuery?: DocumentNode | undefined; operationName?: string | undefined; variables?: { ...; } | undefined; persistedQueryHit?: boolean | undefined; persistedQueryRegister?: boolean | undefined; context: any; requestContext: ...' is not assignable to type 'RequestStart'.
              Types of property 'request' are incompatible.
                Type 'Pick<Request, "url" | "method" | "headers">' is missing the following properties from type 'Request': clone, bodyUsed, arrayBuffer, json, text

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DanielMSchmidtcommented, Apr 25, 2019

Awesome, thank you!

0reactions
stale[bot]commented, Aug 7, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error handling - Apollo GraphQL Docs
Apollo Server throws errors automatically when applicable. For example, it throws a GRAPHQL_VALIDATION_FAILED error whenever an incoming operation isn't valid ...
Read more >
Migrating to Apollo Server 4 - Apollo GraphQL Docs
For background, Apollo Server uses type system features introduced in v4.7. ... If debug is true , GraphQL responses with errors include stack...
Read more >
Error handling - Apollo GraphQL Docs
Apollo Server throws errors of most built-in types automatically when applicable. For example, it throws a ValidationError whenever an incoming operation isn't ...
Read more >
Introduction to Apollo Client - Apollo GraphQL Docs
Apollo Client is a comprehensive state management library for JavaScript that enables you to manage both local and remote data with GraphQL.
Read more >
Handling operation errors - Apollo GraphQL Docs
Error types. Executing GraphQL operations on a remote server can result in GraphQL errors or network errors. GraphQL errors. These are errors related...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found