Closed angelod1as closed 5 years ago
I got the problem. gatsby-remark-images
puts a link inside every image, and I had a link over it.
Solution: add linkImagesToOriginal: false
to gatsby-reamark-images
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 1500,
linkImagesToOriginal: false,
},
},
I was wrong in my own question.
I found out that, even after renaming my files (eg: Opening
to opening
), git continued to commit TWO documents: Opening
and opening
, resulting in the following error:
There was an error in your GraphQL query:
RelayParser: Encountered duplicate defintitions for one or more documents: each document must have a unique name.
The problem has nothing to do with GraphQL and/or directly Gatsby. Actually, this is the question I'm asking: is this a Gatsby bug?
The solution: Deleted opening.js
, created a new file open.js
and pasted the code there. Did the same to another file that was outputting the same error.
Hiya!
This issue has gone quiet. Spooky quiet. 👻
We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 💪💜
Hey again!
It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it.
Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY
. Please feel free to reopen this issue or create a new one if you need anything else.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks again for being part of the Gatsby community!
EDIT: read my second reply to this issue first for better clarification of the problem. Thanks.
Description
gatsby build
runs smoothly. When I push to Netlify, theError: RelayParser: Encountered duplicate defintitions for one or more documents: each document must have a unique name.
appears. I changed all my filenames to lowercase to avoid case problems and the error persists.Steps to reproduce
Run this project on branch
netlify-error
. First,yarn
, thengatsby develop
. Here, no errors.gatsby build
, nice, no errors again. Tested in local server, everything great.git push
to Github and Netlify... error.Expected result
The site should build without errors.
Actual result
The error appeared.
Environment
Netlify full message:
Gatsby config:
Gatsby node
15530 is a similar error without apparent solution.