Annoyance - Missing library: @graphql-typed-document-node/core - seems to have no effect
Situation
- Our graphQL to typescript generator generates 4 files in src/generated.
- Two of them need @graphql-typed-document-node/core which is not part of our package.
- I don't know why, but
pnpm install @graphql-typed-document-node/core
solves this. - I think we are not using the document node approach, instead just the generated
graphql.ts
types directly. So we can ignore the files. - I faintly remember that I didn't manage to get the document node approach running, and I don't remember its benefits (other than being the latest and cooles in the hood)
Problem
The syntax error is annying for DX.
Solutions
(a) Change the genconfig such that only graphql.ts
is generated
(b) Add @graphql-typed-document-node/core
to our package (-> 3.)
(c) Ignore and concentrate on more pressing issues for now (-> flow:icebox)
Edited by Flupsi