You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running npx gatsby new blog and then going into the blog directory and running npm run develop or npm run build I get an error during build:
ERROR #11321 PLUGIN
"gatsby-plugin-manifest" threw an error while running the onPostBootstrap lifecycle:
Input file contains unsupported image format
When running develop it additionally logs:
ERROR
Failed to retrieve metadata from image /home/REDACTED/dev/projects/blog/src/images/gatsby-astronaut.png Input file contains unsupported image format
Error: Input file contains unsupported image format
ERROR #85925 GRAPHQL
There was an error in your GraphQL query:
Cannot return null for non-nullable field ImageSharpFluid.aspectRatio.
The field "ImageSharpFluid.aspectRatio." was explicitly defined as non-nullable via the schema customization API (by yourself or a plugin/theme). This means that this field is not optional and you have to define a value. If this is not your desired behavior and you defined the schema yourself, go to "createTypes" in gatsby-node.js. If you're using a plugin/theme, you can learn more here on how to fix field types:
https://www.gatsbyjs.org/docs/schema-customization/#fixing-field-types
1 | fragment GatsbyImageSharpFluid on ImageSharpFluid {
2 | base64
> 3 | aspectRatio
| ^
4 | src
5 | srcSet
6 | sizes
7 | }
8 |
9 | query homeREDACTEDdevprojectsblogsrccomponentsimageJs2969191536 {
10 | placeholderImage: file(relativePath: {eq: "gatsby-astronaut.png"}) {
11 | id
12 | childImageSharp {
13 | id
File path: /home/REDACTED/dev/projects/blog/src/components/image.js
Plugin: none
Steps to reproduce
run npx gatsby new blog
go into the blog directory and run npm run develop or npm run build
You probably have a libvips 8.9.0+ installed globally which seems to cause this issue. In this case, the solution proposed in the linked issue should help you:
Confirmed: set that environment variable and redid the npx gatsby new ... and npm run develop dance and it works. Sorry, I did look for similar issues but somehow that did not come up. Thanks!
Description
After running
npx gatsby new blog
and then going into theblog
directory and runningnpm run develop
ornpm run build
I get an error during build:When running develop it additionally logs:
Steps to reproduce
npx gatsby new blog
blog
directory and runnpm run develop
ornpm run build
Expected result
The error mentioned above should not occur
Actual result
The error occurred
Environment
The text was updated successfully, but these errors were encountered: