import { HeadersInit } from 'graphql-request/dist/types.dom';
^^^^^^^^^^
build error, since HeadersInit is not exported.
Workaround
to use latest typescript-graphql-request, import Headers instead of HeadersInit.
- import { HeadersInit } from 'graphql-request/dist/types.dom';
+ import { Headers } from 'graphql-request/dist/types.dom';
// also replace the lines it is used.
Overview
build error, since
HeadersInit
is not exported.Workaround
to use latest typescript-graphql-request, import
Headers
instead ofHeadersInit
.Link
Module repository: https://github.com/dotansimha/graphql-code-generator
Related Issues: https://github.com/dotansimha/graphql-code-generator/issues/5459