Skip to content

Unmet peer dependencies warning with latest typescript-operations plugin version #10329

@jnoordsij

Description

@jnoordsij

Which packages are impacted by your issue?

@graphql-codegen/typescript-operations

Describe the bug

When installing the latest version of the @graphql-codegen/typescript-operations with the latest version of Yarn without the graphql-sock package as dependency, a warning will appear:
mypackage@workspace:. doesn't provide graphql-sock (pd5ca2), requested by @graphql-codegen/typescript-operations.

This peer dependency has been introduced with #10323, however the implementation seems to imply it is optional, hence I think it should be marked as such.

Your Example Website or App

n/a

Steps to Reproduce the Bug or Issue

  1. Create project with recent yarn version
  2. Install dependencies @graphql-codegen/typescript-operations and graphql
  3. The warning will appear

Expected behavior

No warning to appear, given that the dependency should be optional.

Screenshots or Videos

No response

Platform

  • OS: any
  • NodeJS: any
  • graphql version: any
  • @graphql-codegen/* version(s): @graphql-codegen/typescript-operations 4.6.0

Codegen Config File

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions