Coder Social home page Coder Social logo

Comments (4)

YangVincent avatar YangVincent commented on June 28, 2024

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.

aravindballa avatar aravindballa commented on June 28, 2024

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.

YangVincent avatar YangVincent commented on June 28, 2024

Absolutely. Thus far (with the debugging steps removed that didn't work):

  1. npm install -g gatsby-cli
  2. nvm upgrade
  3. nvm update
  4. yarn add gatsby-theme-andy

With variants of installing npm, yarn, and removing node_modules.

from gatsby-theme-andy.

YangVincent avatar YangVincent commented on June 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.