Gatsby: [v2] Build fails because missing directories

Created on 18 Jul 2018  路  4Comments  路  Source: gatsbyjs/gatsby

Description

After update to the latest beta, builds start failing, image-sharp is not able to store files as directories do not exist yet.

error Failed to process image /home/porfirio/Agroop/website/src/images/hero/homepage.jpg


  Error: vips__file_open_write: unable to open file "/home/porfirio/Agroop/website/public/static/homepage-e9a46789054c3337a506ffa991521c93-8a184.jpg" for writing
  unix error: No such file or directory

Steps to reproduce

Build a website on a clean stage that uses gatsby-plugin-sharp
If you do mkdir -p public/static before build it works

Expected result

Build successes

Actual result

fails to build

help wanted bug

All 4 comments

I just tried building the image processing example using beta ~41~ 44 and it built without error. Can you create a demo repo?

Ok I replicated this with the gatsbygram example.

You always fix the issues so quickly! Thanks! :100:

Published in [email protected]

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dustinhorton picture dustinhorton  路  3Comments

jimfilippou picture jimfilippou  路  3Comments

rossPatton picture rossPatton  路  3Comments

andykais picture andykais  路  3Comments

3CordGuy picture 3CordGuy  路  3Comments