Skip to content

ERRORS WITH MISSING MODULE, CODEGEN AND GRAPHQL DOCUMENT ERROR #97

Open
@esilverman682

Description

@esilverman682

Here are the errors I get when running the code with Wordpress backend

npm modules all installed including graphql-codegen error #1
not sure what this error is about #2
running npm run codegen and get error #3

  1. Cannot find module '@/graphql/generated/fragmentMatcher' or its corresponding type declarations.
  2. Cannot find module '@/graphql/generated' or its corresponding type declarations.
  3. Generate graphql/generated/fragmentMatcher.ts
    ✔ Load GraphQL schemas
    ✔ Load GraphQL documents
    ✖ GraphQL Document Validation failed with 22 errors;
    Error 0: GraphQLDocumentError: Unknown type "ContentBlock". Did you mean "ContentNode"…
    at /Users/Desktop/vip-go-nextjs-skeleton/graphql/fragments/ContentBlock.graphq…
    Error 1: GraphQLDocumentError: Cannot query field "contentBlocks" on type "NodeWithCon…
    at /Users/Desktop/vip-go-nextjs-skeleton/graphql/fragments/ContentBlock.graphq…
    Error 2: GraphQLDocumentError: Unknown type "ContentBlock". Did you mean "ContentNode"…
    at [/Users/Desktop/vip-go-nextjs-skeleton/graphql/fragments/ContentNode.graphql…

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