You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warn The GraphQL query in the non-page component "devfolio/src/templates/blog-post.jsx" 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 is a regular component and not intended to be a page component, you generally want to use "useStaticQuery"
(https://www.gatsbyjs.com/docs/how-to/querying-data/use-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://www.gatsbyjs.com/docs/reference/graphql-data-layer/using-graphql-fragments/)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: