apollographql / apollographql/apollo-tooling
graphql mismatching dependency versions
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 460
- PR merge metrics
- No merged PRs in 30d
Description
**Intended outcome:**
No warnings, no wrong deps installation.
**Actual outcome:**
Warning:
```
apollo > apollo-language-server > @apollographql/graphql-language-service-interface > @apollographql/graphql-language-service-utils@2.0.2" has incorrect peer dependency "graphql@^0.12.0 || ^0.13.0 || ^14.0.0".
```
**How to reproduce the issue:**
`apollo` install `graphql v15` and installs `apollo-language-server` that includes `@apollographql/graphql-language-service-interface` but requires:
```
"peerDependencies": {
"graphql": "^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"
},
```
Package.json:
```
{
"name": "apollo-language-server",
"dependencies": {
"@apollographql/graphql-language-service-interface": "^2.0.2",
"graphql": "14.0.2 - 14.2.0 || ^14.3.1 || ^15.0.0",
```
**Versions**
verified with:
apollo v2.32.11 and v2.32.13 (latest)
Contributor guide
Research direction
Start by locating the package.json files for apollo-language-server and @apollographql/graphql-language-service-interface, then compare their GraphQL dependency and peerDependency ranges. Reproduce the install with graphql v15 and Apollo CLI v2.32.13; done means the packages agree on a compatible range and installation produces no peer-dependency warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, typescript
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100