Skip to content

apollo-server-express fails to resolve graphql 16 using yarn PnP #6269

@evanrlong

Description

@evanrlong

I am trying to use apollo-server-express in a project using yarn 3 w/ PlugNPlay dependency resolution. When I run yarn add apollo-server-express inside my project, I expect it to include the package without errors. Instead, I see this...

output

And running yarn explain peer-requirements <hash> yields...

explain

The problematic area seems to be an incorrect peerDependency inside @apollographql/apollo-tools@0.5.2. Strangely, that package does not seem to have any listed peerDependencies, so I'm a bit stumped.

Here is a minimal reproduction...

https://github.com/evanrlong/graphql-16-resolution-example

Could someone please take a look so that we can use graphql@16.x and apollo-server-express within yarn projects? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions