-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Issue with yarn 4 workspaces #9864
Comments
can you try yarn resolutions and force only 1 package of |
I have already added a resolutions:
it didn't help unfortunately |
Can you please share a minimal reproduction. You can either use StackBlitz, CodeSandbox or a public GitHub repo. |
Thank you for insisting, I just did that, could not reproduce it. Realised that I had some stale No bug therefore, just a clumsy dev - me :-) #lessonslearned Thanks for your quick feedback and your time! |
Which packages are impacted by your issue?
@graphql-codegen/cli
Describe the bug
After migrating from yarn, to yarn 4 with workspaces, the codegen does not work anymore:
Your Example Website or App
Steps to Reproduce the Bug or Issue
Expected behavior
I'd expect codegen to be ok with the available graphql package
Screenshots or Videos
Platform
OS: macOS, m1
NodeJS: 20.4.0
graphql
version: 16.8.1@graphql-codegen/*
version(s): 5.0.2Codegen Config File
overwrite: true
schema: 'supergraph.graphql'
documents: 'src/queries/**/*.graphql'
generates:
src/queries/generatedGQLTypes.ts:
plugins:
- 'typescript'
- 'typescript-operations'
- 'typed-document-node'
config:
avoidOptionals: false
onlyOperationTypes: false
omitOperationSuffix: false # has to be set to false for now because otherwise duplicate types will be generated
dedupeFragments: true
scalars:
DateTime: string
Additional context
I will try to create a sandbox later
The text was updated successfully, but these errors were encountered: