Skip to content

Duplicate "graphql" modules cannot be used at the same time #25

@jaeming

Description

@jaeming

Current Version of @graphql-codegen/cli does not work and will present the following on generating:

Found 1 error

  ✖ src/GraphQLTypes.re
    Error: Cannot use GraphQLDirective "@include" from another module or realm.

    Ensure that there is only one instance of "graphql" in the node_modules
    directory. If different versions of "graphql" are the dependencies of other
    relied on modules, use "resolutions" to ensure only one version is installed.

    https://yarnpkg.com/en/docs/selective-version-resolutions

    Duplicate "graphql" modules cannot be used at the same time since different
    versions may have different capabilities and behavior. The data from one
    version used in the function from another could produce confusing and
    spurious results.

It looks like version 1.5.0 of codegen now uses "graphql": "^15.5.0", which is resulting in this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions