decaporg / decaporg/gatsby-starter-decap-cms

GraphQL errors on new clone

Open
#875 13 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2k
Forks
951
PR merge metrics
No merged PRs in 30d

Description

# 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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.