Comments (4)
It actually happens on the sandbox as well (the GraphQL error)
There was an error in your GraphQL query:
Cannot query field "inboundReferencePreviews" on type "BrainNote".
If you don't expect "inboundReferencePreviews" to exist on the type "BrainNote" it is most likely a typo.
However, if you expect "inboundReferencePreviews" to exist there are a couple of solutions to common problems:
- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "inboundReferencePreviews" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")
It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "BrainNote":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions
File: /sandbox/node_modules/@aengusm/gatsby-theme-brain/src/templates/brain.js
from gatsby-theme-andy.
Hey! Thanks for trying this out. Can I know what steps you took?
We can cannot run this directly as this is a gatsby theme and we need to include this in a gatsby project as a plugin. Also, I ran into an issue, where this project wouldn't build if the markdown file in the content doesn't have [[]]
(this is a bug).
from gatsby-theme-andy.
Absolutely. Thus far (with the debugging steps removed that didn't work):
npm install -g gatsby-cli
nvm upgrade
nvm update
yarn add gatsby-theme-andy
With variants of installing npm, yarn, and removing node_modules.
from gatsby-theme-andy.
Just kidding, managed to get it working. I was trying to run this current project, instead of starting my own and adding this as a module.
from gatsby-theme-andy.
Related Issues (20)
- How can I close the current pane and go back to the previous pane? HOT 2
- Preserve ⌘ + click to open in new tabs
- How would I go about removing the Footer line HOT 3
- How should I go about adding images? (and/or hosting resources) HOT 2
- Not getting the sidebar once notes are stacked HOT 1
- Updating the theme HOT 6
- Error: gatsby tried to access @babel/types, but it isn't declared in its dependencies; HOT 1
- Is it possible to support link to h1/h2/h3 section titles in .md files?
- EPIPE error HOT 2
- aliases HOT 1
- Creating private pages HOT 1
- Getting a "TypeError: note.childMdx is null" on running yarn develop HOT 5
- Handling github relative paths HOT 1
- Responsiveness
- Shadow BrainNote.js to remove file title as note header HOT 1
- pathPrefix in gatsby-config.js causes backlink to prefix pathPrefix twice HOT 1
- Add hierarchy support HOT 1
- Creating a graph of all the nodes
- `yarn build` fails with several errors
- Cannot query field "inboundReferencePreviews" on type "BrainNote". HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-theme-andy.