Gatsby clean project shows Field "featuredimage" must not have a selection since type "String" has no subfields 错误

问题描述 投票:0回答:0

Gatsby clean 项目显示许多字段“x”不能有选择,因为类型“String”没有子字段错误。

我的电脑信息 节点 v18.14.1 npm v9.5.0

我使用了这个模板。

https://www.gatsbyjs.com/starters/netlify-templates/gatsby-starter-netlify-cms/

我使用这个命令然后我可以在 Netrify 上部署。 我可以看到网页。

npx gatsby new gatsby-starter-netlify-cms https://github.com/netlify-templates/gatsby-starter-netlify-cms

然而,当我在我的电脑上运行“gatsby develop”时。我经常遇到这种错误。

ERROR #85922  GRAPHQL
There was an error in your GraphQL query:
      Field "featuredimage" must not have a selection since type "String" has no subfields.

我想当我更改文本和图像等时,我对某些文件做了一些不好的事情,所以我使用相同的命令开始了新的干净的 Gatsby 项目

npx gatsby new gatsby-starter-netlify-cms https://github.com/netlify-templates/gatsby-starter-netlify-cms

之后我跑

gatsby develop

我经常遇到这种错误。

有人可以教我错在哪里吗?

gatsby
© www.soinside.com 2019 - 2024. All rights reserved.