Skip to content

graphql-codegen errors #108

@builderpepc

Description

@builderpepc

Initial errors may be caused by graphql-codegen running before the firewall whitelist script on initial install, preventing graphql-codegen from querying the production GraphQL schema. However, there are a few errors which do not resolve themselves in subsequent attempts.

Possibly related to this setting in WPGraphQL being disabled?
Image

> nefac-website@0.1.0 generate:types
> graphql-codegen

✔ Parse Configuration
⚠ Generate outputs
  ❯ Generate to ./src/__generated__/
    ✔ Load GraphQL schemas
    ✔ Load GraphQL documents
    ✖ GraphQL Document Validation failed with 5 errors;
    Error 0: Cannot query field "newsPost" on type "RootQuery". Did you mean "post"?
    at C:/Users/troyh/Documents/dev/NEFAC/nefac/nefac-website/src/components/news-page/NewsBubble.tsx:3:13

    Error 1: Cannot query field "editorBlocks" on type "Page".
    at C:/Users/troyh/Documents/dev/NEFAC/nefac/nefac-website/src/pages/leadership/index.tsx:5:7

    Error 2: Unknown type "NefacLeadershipPersonCard".
    at C:/Users/troyh/Documents/dev/NEFAC/nefac/nefac-website/src/pages/leadership/index.tsx:8:16

    Error 3: Cannot query field "editorBlocks" on type "Page".
    at C:/Users/troyh/Documents/dev/NEFAC/nefac/nefac-website/src/pages/mission/index.tsx:4:7

    Error 4: Cannot query field "newsPosts" on type "RootQuery". Did you mean "posts"?
    at C:/Users/troyh/Documents/dev/NEFAC/nefac/nefac-website/src/pages/news/index.tsx:3:4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdraft

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions