Skip to content

Bug: Fails on save when fragment is in separate .graphql file #22

@ntziolis

Description

@ntziolis

Setup:

  • .graphql A contains fragment B
  • .graphql file C contains a an operation that references the fragment B

Result:

  • The extension works without issues when saving A
  • The extension reports a failure when saving B
    • "Codegen threw 3 errors, first one: GraphQL Document Validation failed with 1 errors; Error 0: GraphQLDocumentError: Unknown fragment"

Note:
When running the codegen manually the generation succeeds without issues.

Plugins used:

  • typescript
  • typescript-operations
  • typed-document-node
  • typescript-apollo-angular

This extension is immensely helpful, we are happy to assist in any way we can to resolve this issue. In the meanwhile any workaround to get this working would be highly appreciated.

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