-
I am trying all day to configure my project from scratch, but stuck in this part where I successfully generated code, but it doesn't compile (runtime). I just want to execute simple hook generated by the codegen. I am using typescript, graphql, react, react-apollo, here is my codegen.yml overwrite: true I have simple getUser.graphql file My generated.ts starts like this: import { gql } from '@apollo/client'; In single componen I have The server app (graphql) runs without issues, but when I try to run my CRA I get following error, which makes no sense to me: As you can see line 4 is export type Exact<T extends ..., which seems fine to me. The thread might get too big, that's why I am not publishing all of the code, but if necessary I will put my code in codesandbox or something. Any help would be much appreciated :) . |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the problem. I was missing |
Beta Was this translation helpful? Give feedback.
I found the problem. I was missing
"eslintConfig": {
"parser": "@typescript-eslint/parser"
}
in my package.json
You can close this :)