Skip to content

Close to working with TypeScript, but not quite -- Error: "Cannot find name RequestInit" #26

@n8sabes

Description

@n8sabes

graphql-request doesn't work with TypeScript projects. I'm seeing the following error:

node_modules/graphql-request/dist/src/types.d.ts(5,14): error TS2304: Cannot find name 'RequestInit'

I found the following related issue:
RequestInit is not defined

Any help getting graphql-request working in TypeScript would be appreciated.

Thank you.

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