docz: GraphQL error running docz dev
Bug Report
Describe the bug
Cannot query field "allDoczEntries" on type "Query". Did you mean "allDoczDb"?
File: node_modules/gatsby-theme-docz/src/node/createPages.js:30:10
Running docz dev
and getting the above error.
A clear and concise description of what the bug is.
To Reproduce
There was an error in your GraphQL query:
Cannot query field "allDoczEntries" on type "Query". Did you mean "allDoczDb"?
File: node_modules/gatsby-theme-docz/src/node/createPages.js:30:10
success createPages - 0.063 s
success createPagesStatefully - 0.070 s
success onPreExtractQueries - 0.020 s
success update schema - 0.036 s
ERROR
There was a problem parsing "/Users/mkruk/dev/docz/node_modules/gatsby-theme-docz/templates/Layout.tpl.js"; any GraphQL fragments or queries in this file were not processed.
This may indicate a syntax error in the code, or it may be a file type that Gatsby does not know how to parse.
In order to allow us to quickly reproduce you issue please include a link to a reproduction repository.
Expected behavior
A clear and concise description of what you expected to happen…
Environment
- OS: OSX10.14.4
- Node/npm version: node 10.15.3 / npm 6.4.1
Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 21
- Comments: 23 (6 by maintainers)
Commits related to this issue
- docs(docz): update getting started instructions Fixes #1007 — committed to amprew/docz by rakannimer 5 years ago
I hit the same error too with 2.2.0 and 2.3.1 (Windows, Node 10.15.3), but things are kind of opaque and can’t really tell what is wrong…
@rakannimer Apologies for not being more helpful. I completely reworked the project. I got Docz 2 working first and then pulled over components one-by-one. I wish I could point to the exact thing that made it all work, but there was too much going on and I tried too many things. If it breaks again I’ll try and figure it out and let you know. Thanks!
@rakannimer thanks works with those, only thing I changed was the .mdx to follow that Button example 👍