Skip to content

error running codegen when removing a source from .meshrc.yml #1561

@GlCap

Description

@GlCap

Provide environment information

v16.15.1

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Describe the Bug

when running mesh build on the latest @graphcommerce/cli@1.0.6 and @graphcommerce/graphql-mesh@4.1.5 the cli throws an error on each graphqls schema:

💥 🕸️  Mesh Error: Directive "@injectable" already exists in the schema. It cannot be redefined.

Directive "@in...

ONLY when a single source is present in the .meshrc.yml config file

I realize this use case for graphql mesh is weird because it defeats its purpose, but we don't need graphcms in our project.

using the same source twice with a different name works for some reason

Expected Behavior

mesh building a single source

To Reproduce

remove graphcms source from .meshrc.yml, but it should throw the same error even if removing m2 source

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