Skip to content

@rtk-query/graphql-request-base-query causing "Cannot find module './GraphqlBaseQueryTypes' or its corresponding type declarations"  #2269

Open
@ryanrouleau

Description

@ryanrouleau

I'm implementing the graphql/rtk-query codegen (and it's been great so far).

But I'm having this lingering issue where typescript is complaining that it can't find /GraphqlBaseQueryTypes. See the below console output:

ERROR in <omitted for privacy>/node_modules/@rtk-query/graphql-request-base-query/dist/index.d.ts(4,50):
TS2307: Cannot find module './GraphqlBaseQueryTypes' or its corresponding type declarations.
Version: typescript 4.1.6

I see the file it's referencing in an adjacent folder:
Screen Shot 2022-04-21 at 3 56 55 PM

Manually editing the import it to ../src/GraphqlBaseQueryTypes makes it work but isn't really a solution.

Is this an issue with my local TS setup or is there something else going on?

Thanks so much, appreciate it.

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