Closed frankstallone closed 5 years ago
Thanks for reporting this @frankstallone!
Np @ijones16 -- I wish I was knowledgeable enough with GraphQL to send a pull request instead. Soon!
My solution is here if you want to take a look https://github.com/eggheadio/gatsby-starter-egghead-blog/pull/23/files.
The other way to do it is just get rid of the StaticQuery
method altogether and pass in the siteTitle
in as a prop. I chose to use graphql in the case because I dont want siteTitle
to be a dependency everytime you pull in the header.
Getting the following warning when running
npm run build
:This can be recreated by doing a
gatsby new gatsby-starter-egghead-blog https://github.com:eggheadio/gatsby-starter-egghead-blog.git
and runningnpm run build
.