Skip to content

GraphQL errors on new clone #875

Open
@ZBlocker655

Description

@ZBlocker655

Bug report

What is the current behavior?

On a clean clone, ran npm install and gatsby develop. Receiving multiple GraphQL errors of which the following is a sample:

 ERROR #85922  GRAPHQL

There was an error in your GraphQL query:

      Field "featuredimage" must not have a selection since type "String" has no subfields.

      This can happen if you e.g. accidentally added { } to the field "featuredimage". If you didn't expect
"featuredimage" to be of type "String" make sure that your input source and/or plugin is correct.
      However, if you expect "value" to exist, the field might be accessible in another subfield. Please try your query
in GraphiQL.

      It is recommended to explicitly type your GraphQL schema if you want to use optional fields.

File: src\components\BlogRoll.js:96:33

See our docs page for more info on this error: https://gatsby.dev/creating-type-definitions

If the current behavior is a bug, please provide the steps to reproduce.

  • Clone repo
  • Run npm install
  • Run gatsby develop

What is the expected behavior?

Development site starts correctly and can be served from localhost.

Other relevant information:

Node.js version: 18.10.0
NPM/Yarn version: 8.19.2
Operating System: Windows 10
Additional tools: Gatsby CLI 4.24 (installed via choco)

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