-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
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?

> 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