gatsby-theme-apollo
gatsby-theme-apollo copied to clipboard
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree - creating minimal gatsby site based on Apollo
Opening new issue based on issue 93 Trying to create a minimal gatsby based on the Apollo Theme. I create minimal content as suggested by Trevor in issue s93 and based on https://bywp2.sse.codesandbox.io/ I created the following files:
- content/components/dummy.mdx
- content/dummy.mdx
- content.index.md
- gatsby-theme-apollo-docs/components\heaader-button.js
- gatsby-config.js
When I did gatsby develop I got
This failed with error #85923
Cannot query field "description" on type "MdxFrontmatter".
There was also an error relating to not being in a git repository, so I created a git repository, moved the files there, and then did a git clean-install. The above issue disappeared - but now I'm getting
success open and validate gatsby-configs - 0.242s
success load plugins - 0.987s
success onPreInit - 0.041s
success initialize cache - 0.006s
success copy gatsby files - 0.147s
success onPreBootstrap - 0.023s
success createSchemaCustomization - 0.239s
success Checking for changed pages - 0.001s
success source and transform nodes - 0.078s
success building schema - 0.337s
ERROR #11321 PLUGIN
"gatsby-theme-apollo-docs" threw an error while running the createPages lifecycle:
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
The versions I am using are: "dependencies": { "gatsby": "^2.29.3", "gatsby-theme-apollo-docs": "^4.5.12", "react": "^17.0.1", "react-dom": "^17.0.1" }
I really want to try this theme out as a started
- How do I continue from here?
- When I look at localhost::/8000 I get a 404 - it suggests I create a page at pages/index.js which I did, but I still get 404
- IMPORTANT - I'm not interested in creating content in md or mdx, since I'll be importing from existing html files (That will be converted to JSX) - is there anything in the Apollo component that will prevent me from doing that? Does it assume all the content is coming from 'contentDir' and is in MD or MDX? Thanks and Happy New Year!
OK - I did git add and git commit and the problem went away So the reported issue is a dependency on the initial version being in Git that should either be removed or documented in the Read.me along with the minimum set of files needed