aravindballa / gatsby-theme-andy

A Gatsby theme to build Andy style websites. 📑
344 stars 46 forks source link

Getting a "TypeError: note.childMdx is null" on running yarn develop #28

Closed kprohith closed 3 years ago

kprohith commented 4 years ago
warning The GraphQL query in the non-page component "C:/Users/rohith/Documents/GitHub/notes-digital-garden/node_modules/@aengusm/gatsby-theme-brain/src/templates/brain.js" will not be run.
Exported queries are only executed for Page components. It's possible you're
trying to create pages in your gatsby-node.js and that's failing for some
reason.

If the failing component(s) is a regular component and not intended to be a page
component, you generally want to use a <StaticQuery> (https://gatsbyjs.org/docs/static-query)
instead of exporting a page query.

If you're more experienced with GraphQL, you can also export GraphQL
fragments from components and compose the fragments in the Page component
query and pass data down into the child component — https://graphql.org/learn/queries/#fragments

image

aravindballa commented 3 years ago

Which version of node are you on?

kalmir commented 3 years ago

Hi, Aravind, that happened to me too :(

Node v15.5.1.

Thx for help if there's any to be given. Your theme is great but maybe too techy for lama like me.

Screenshot 2021-01-12 at 09 28 08 Screenshot 2021-01-12 at 09 27 46 Screenshot 2021-01-12 at 09 27 36
kalmir commented 3 years ago

And after switching node to 12.20.1.

Screenshot 2021-01-12 at 11 11 53
kalmir commented 3 years ago

Eventually I made it work. Not sure if it was still the same problem as reported above, but the last thing I needed to "fix" was having some md files already in content directory. Otherwise an error is thrown.

aravindballa commented 3 years ago

Cool. I'll add this to readme in a while.