ChristopherBiscardi / gatsby-plugins

A collection of my Gatsby plugins
23 stars 5 forks source link

[gatsby-plugin-printer]: no graphql query results #21

Closed NickyMeuleman closed 4 years ago

NickyMeuleman commented 4 years ago

Hi!

I followed along with https://lannonbr.com/blog/2019-11-10-og-images/ to get screenshots.

No screenshots are being taken. After some investigating it appears the internal graphql query (in gatsby-node of this plugin) is not returning any results, hence puppeteer never tries to take screenshots.

More info here: https://github.com/NickyMeuleman/gatsby-theme-nicky-blog/pull/2

edit: after way too long I double checked myself and discovered that while I was running gatsby clean && gatsby develop, I did not do the clean step before build. You even told me to rm -rf .cache && gatsby build in discord (emphasis mine).

After 3 times (why 3? That's odd. Definition of insanity etc, etc.) times running gatsby clean && gatsby build the images started showing up in the public folder.