-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image Sharp not working #3
Comments
Yes, my understanding of this issue is that sharp/gatsby-image require the image to be on disk to do transformations. I think there was a similar issue with contentful.
|
I was able to tweak the fix from here. gatsby-node.js var fs = require("fs")
var dir = "./.cache/caches/@prismicio/gatsby-source-prismic-graphql"
exports.onPreBootstrap = () => {
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir, { recursive: true })
}
} |
@TimFletcher interesting :) |
@steoneill should be fixed now :) |
When querying an imageSharp field, i get this back:
The text was updated successfully, but these errors were encountered: