-
-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(graphcache): type missmatch between graphql-code-generator and graphcache #2639
Comments
Have you tries running a dedupe command? Sometimes package managers start creating duplicate versions which can lead to this |
Dedupe command of what? Duplicate versions of what? Shall I reinstall |
Something like https://www.npmjs.com/package/pnpm-deduplicate package has not a lot of downloads for npm and yarn this is built-in 😅 Might be related pnpm/pnpm#3517 |
@kitten looked at your code and pointed rightfully out that you are using the generic wrong here https://github.com/maevsi/maevsi/blob/8f6eedd191ce08a950d92cac1f94c0cebd6d5cb6/nuxt/plugins/urql.ts#L66 const cache = cacheExchange<GraphCacheConfig>(cacheConfig) should do the trick |
Thank you for your suggestions and looking into the code! Sadly, |
Hmm this is kind off weird, I just tried this config in one of my own projects where we have similar fields where EDIT: we are using the same typescript version - a minimal reproduction would help here (ts playground/...) 😅 could also be that the gql-codegen folks have experience with this type of issue CC @dotansimha |
I do not face this issue anymore currently. |
Describe the bug
I hit the same issue as in #1654 again.
I use
The exact error:
Should I post more details here or to
@graphql-codegen
?Reproduction
https://github.com/maevsi/maevsi/runs/7967037590?check_suite_focus=true#step:5:1647
Urql version
2.6.1 as well as 3.0.1
Validations
The text was updated successfully, but these errors were encountered: