FrontendMasters / gatsby-intro

Code for the Introduction to Gatsby course.
https://frontendmasters.com/courses/gatsby/
MIT License
253 stars 235 forks source link

sharp graphql hero.js image fails in Netlify #23

Closed mcasey8540 closed 5 years ago

mcasey8540 commented 5 years ago

Hello 👋- I used a different image in my hero.js file than the one from the tutorial. Local develop and build runs fine, but deployment fails in Netlify with this sharp error.

10:02:01 AM: (sharp:1192): GLib-CRITICAL **: 14:02:01.583: g_hash_table_lookup: assertion 'hash_table != NULL' failed
10:02:01 AM: (sharp:1192): GLib-CRITICAL **: 14:02:01.583: g_hash_table_insert_internal: assertion 'hash_table != NULL' failed
10:02:01 AM: (sharp:1192): GLib-CRITICAL **: 14:02:01.583: g_hash_table_lookup: assertion 'hash_table != NULL' failed

I added my own photo to /images and updated the file path in hero.js, any idea why it fails in Netlify deploy? I can only get a successful build if I use nicole-harrington-mn.jpg

mcasey8540 commented 5 years ago

Resolved: I had to clear the Netlify cache and redeploy.