Skip to content

Type mismatch when passing GraphQLClient instance to @rtk-query/graphql-request-base-query graphqlRequestBaseQuery #2931

Open
@joemar12

Description

@joemar12

There's a type mismatch when passing an instance of GraphQLClient from graphql-request v5 to graphqlRequestBaseQuery.
The error looks like this:
Type 'import(".../node_modules/graphql-request/dist/index").GraphQLClient' is not assignable to type 'import(".../node_modules/@rtk-query/graphql-request-base-query/node_modules/graphql-request/dist/index").GraphQLClient'. Types have separate declarations of a private property 'url'.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions