Closed maweo closed 1 year ago
Hi!
Sorry to hear you're running into an issue. To help us best begin debugging the underlying cause, it is incredibly helpful if you're able to create a minimal reproduction. This is a simplified example of the issue that makes it clear and obvious what the issue is and how we can begin to debug it.
If you're up for it, we'd very much appreciate if you could provide a minimal reproduction and we'll be able to take another look.
Thanks for using Gatsby! 💜
I've also encountered this issue on a site with a WordPress backend. We gave up and hard-coded the menu as a stopgap.
"gatsby": "^4.24.7",
"gatsby-source-wordpress": "^6.14.1",
I encountered this issue so I decided to create custom graphql which displays all the menus and have an identifier. With limitation that you can’t pass arguments to fields you can add id as type.
Hi!
Since we didn't receive an answer for 7 days or more about the ask of a reproduction I'm going to close this now, as we can't do much to help without a reproduction. If you are able to create a minimal reproduction for this then please do answer here or open a new issue with a reproduction. Thanks!
Hi @LekoArts
I am facing the same issue, when sometime MENU are available in CMS ( wordpress ) but on front end it disappear. When i do some changes in them ( and then revert ) those are reflected back on Gatsby after build.
I am not sure how to replicate this issue.
Preliminary Checks
Description
We face a strange behaviour on one of our gatsby frontends. Every build / develop, one or more links from the menu are missing. It is not the same link, sometimes it’s just one link missing, sometimes more.
We tried to trace the error via the steps in the trouble-shooting-section. In WPGraphQL, all of the links are there. When enabling writeQueriesToDisk: true the links are here as well.
In localhost:8000/__graphql, the links are missing, and therefore in the frontend as well. Strangely, when using count in GraphQL, it says the right number of links, while showing fewer links right afterwards. As an example, when we have 4 links in the wp-menu, count says “4", but only 3 links are shown in the query.
We tried playing around with the versions, didn’t change anything. Any ideas, what we can do here?
Relevant dependencies: “gatsby”: “^4.11.2" “gatsby-source-wordpress”: “^6.11.2"
Reproduction Link
/
Steps to Reproduce
Expected Result
Get all entries from the GraphQl Query, when the count is 4, the query should contain 4 entries (we get 3).
Actual Result
The Query count is 4, items that are returned are 3.
Environment
Config Flags
No response