jasonkuhrt / graphql-request

Minimal GraphQL client
MIT License
5.75k stars 307 forks source link

Types broken in v7 #867

Closed jakeleventhal closed 1 month ago

jakeleventhal commented 1 month ago

https://github.com/jakeleventhal/graphql-request-type-issue

You closed the issue where this was being discussed: https://github.com/jasonkuhrt/graphql-request/issues/845#issuecomment-2113924523

Reopening. I updated the tsconfig to node16 and the issue persists. I updated the readme accordingly

jasonkuhrt commented 1 month ago

You need to put "type": "module", into the package.json. I'll make a mention of this in the README as well.

jonkoops commented 1 month ago

@jakeleventhal off-topic, but you might be interested to know you can manage your package manager version through your package.json with Corepack and the packageManager field.