dotansimha / dotansimha/graphql-code-generator
When Using PNPM no autocomplention given everything is unknow
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 1.4k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 23
Description
### Which packages are impacted by your issue?
_No response_
### Describe the bug
Hello, so after a while of debugging, I found that there was an issue with using pnpm, the issue are as follow
- When using `pnpm` no autocompletion is given, and most queries are unknown
now after switching to using `yarn` everything seems to be working fine, with correct typings
I tested different versions of it and always had issues with `pnpm`

### Your Example Website or App
https://github.com/enyelsequeira/bug-repors-grapql
### Steps to Reproduce the Bug or Issue
- simple next application
- yarn dev to run the application
-
### Expected behavior
It should show the correct types
### Screenshots or Videos
_No response_
### Platform
- OS: [e.g. macOS,]
- NodeJS: v18.17.0
"graphql": "^16.7.1", "@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/client-preset": "^4.1.0",
"@graphql-codegen/introspection": "^4.0.0",
"typescript": "5.1.6"
### Codegen Config File
```js
import {CodegenConfig} from "@graphql-codegen/cli";
const config: CodegenConfig = {
schema: "http://127.0.0.1:1337/graphql",
documents: "src/**/*.{tsx.ts.js,jsx}",
ignoreNoDocuments: true,
generates: {
"./src/gql/": {
documents : ['./src/**/*.ts'],
preset: "client",
plugins: []
},
'./graphql.schema.json': {
plugins: ['introspection'],
},
}
}
```
### Additional context
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.