-
Notifications
You must be signed in to change notification settings - Fork 103
Cannot query field "image" on type "MarkdownRemarkFields". #207
Comments
I have the same problem -- did you resolve this?
|
@richburdon Unfortunately not |
@errrken I think I saw the same issue and downgrading Gatsby worked in my case. I am currently on version |
I have a same issue... I can't resolve it "dependencies": { |
Hi @junneyTW, are you using a monorepo setup? I wonder if you're able to create a CodeSandbox with reproducible example? |
Adding an empty
|
Hey @DirkLachowski, thanks! Are you able to run on Gatsby v3 with this config? |
Got it, thank you! |
@mrlubos For completeness and because you mentioned it earlier. Simply downgrading to v2 didn‘t do the trick for me, i had to add the empty config. Our docs are currently a seperate project from our main site (that‘s on v3) and get merged during deploy, so that‘s not an issue in the short run. But i‘m thinking of forking the theme and upgrading it to v3. Our site is build with tailwindcss, so having apollo-core as a second design framework isn‘t my prefered solution. |
Thank you for the context! Yes, I am also thinking about forking but for a different reason. I want to host multiple docs in the same project. It doesn't seem to be possible at the moment? It appears to me that Apollo has individual docs for React/JS, Android, iOS, etc. and they somehow merge them together in deployment. I think this because I can't figure out a way to update the sidebar navigation based on the subpath. Routing works (e.g. /docs/foo and /docs/bar), but the navigation stays the same. I'd like to host all docs in a single Github repository and build them together. |
In Apollo's case, each projects navigation source lives in the respective project in the The sidebar uses the Apollo is using a centralized config that is imported in each doc site. Config
Sample usage(Merged into |
Hi there,
Using the gatsby starter with the following dependencies:
"dependencies": {
"gatsby": "^3.4.1",
"gatsby-plugin-image": "^1.6.0",
"gatsby-plugin-postcss": "^4.6.0",
"gatsby-plugin-react-helmet": "^4.6.0",
"gatsby-plugin-sharp": "^3.6.0",
"gatsby-source-filesystem": "^3.6.0",
"gatsby-theme-apollo-docs": "^4.7.6",
"gatsby-transformer-sharp": "^3.6.0",
"postcss": "^8.2.6",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-helmet": "^6.1.0"
}
and
{
resolve: "gatsby-theme-apollo-docs",
options: {
siteName: "test",
root: __dirname,
subtitle: "Apollo Server",
description: "A guide to using Apollo Server",
sidebarCategories: {
null: ["index"],
},
},
},
in gatsby-config.js gives me:
Cannot query field "image" on type "MarkdownRemarkFields" and
Cannot query field "image" on type "MdxFields".
any ideas?
The text was updated successfully, but these errors were encountered: