Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Multiple node fields resolve to same GraphQL field #126

Closed
0xhjohnson opened this issue May 14, 2020 · 8 comments
Closed

Multiple node fields resolve to same GraphQL field #126

0xhjohnson opened this issue May 14, 2020 · 8 comments
Assignees

Comments

@0xhjohnson
Copy link

Wondering if you could point me in the right direction to fix these warnings about multiple node fields resolving to same GraphQL field. Things seem to be working fine but I try my best to handle warnings when they come in.

Error when running Gatsby develop:

warn Multiple node fields resolve to the same GraphQL field `StrapiArticle.author.avatar` - [`avatar`, `avatar___NODE`]. Gatsby will use `avatar___NODE`.
warn Multiple node fields resolve to the same GraphQL field `StrapiArticle.icon` - [`icon`, `icon___NODE`]. Gatsby will use `icon___NODE`.

Both of these refer to single media fields.

@avneeshroks
Copy link

Getting the same error, trying to have a component repeated 2 (or more) times inside a dynamic zone of single type. This is really confusing..

warn Multiple node fields resolve to the same GraphQL field StrapiNavBar.logo - [logo,
warn Multiple node fields resolve to the same GraphQL field StrapiHomePage.Section_3.image -
warn Multiple node fields resolve to the same GraphQL field StrapiHomePage.Section_1.image -
warn Multiple node fields resolve to the same GraphQL field StrapiHomePage.Section_2.image -
warn Multiple node fields resolve to the same GraphQL field
warn Multiple node fields resolve to the same GraphQL field StrapiHomePage.Section_4.image -
warn Multiple node fields resolve to the same GraphQL field StrapiHomePage.Section_5.image -

@HAHRJR94
Copy link

Buenas a todos, lo que hice fue hacer "gatsby clean" y luego "gatsby develop" y me funcionó. El proyecto lo hice con strapi.

@aravindjaimon
Copy link

I too have the same error Unable to use a same component twice on a single page. I fixed it by removing the components and adding the items as single items

@derrickmehaffy
Copy link

derrickmehaffy commented Aug 24, 2020

@HAHRJR94 please only use English here, but I have translated your message for others:

Hi everyone, what I did was do "gatsby clean" and then "gatsby develop" and it worked for me. I did the project with strapi.

@digitaldesigndj
Copy link

I trashed the .cache folder, but I guess gatsby clean is a better way. Cleared up my issues.

@hrahimi270
Copy link

Or you can just ignore it as I did ((:

ggat referenced this issue Feb 10, 2021
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
@ggat
Copy link

ggat commented Feb 10, 2021

For anyone still having this issue when using Single Media fields in strapi

yarn add gatsby-source-strapi@1.0.0-alpha.0

@remidej remidej self-assigned this May 19, 2021
@soupette soupette mentioned this issue Feb 11, 2022
11 tasks
@Shams97
Copy link

Shams97 commented May 6, 2022

guys I'm having the same warning and I run gatsby clean without difference.
NOTE : I'm not using strapi, instead these my library related to gatsby source :
@robinmetral/gatsby-source-s3 gatsby-source-filesystem gatsby-source-serverless-aurora

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests