Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'graphql-request/build/cjs/types' or its corresponding type declarations. #566

Closed
davidnguyen11 opened this issue Aug 21, 2023 · 6 comments

Comments

@davidnguyen11
Copy link

Screenshot

Screenshot 2023-08-21 at 21 59 30

Description

I am using "graphql-request": "^6.1.0" and "@graphql-codegen/typescript-graphql-request": "^5.0.0" and "@graphql-codegen/cli": "^5.0.0",.

When I run graphql-codegen command, the file was generated, but GraphQLClientRequestHeaders cannot be imported

Reproduction Steps/Repo Link

@denniseffing
Copy link

I am experiencing the same issue. Did you find a workaround?

@ryands17
Copy link

It seems that the change is merged but there isn't any release yet

@Loque-
Copy link

Loque- commented Oct 21, 2023

To work around this issue you can set moduleResolution in tsconfig;

{
  "compilerOptions": {
    "moduleResolution": "node",
    ...
  }
}

@jasonkuhrt
Copy link
Member

This issue uses the CJS path. CJS will be gone in the next release.

@dkAndFed
Copy link

This issue uses the CJS path. CJS will be gone in the next release.

Hi. When can we expect the next release?

@jasonkuhrt
Copy link
Member

@dkAndFed #675

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

No branches or pull requests

6 participants