Skip to content
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

Fix "Input file contains unsupported image format" error when deploying to Netlify #30

Closed
jung-youjin opened this issue Dec 13, 2022 · 1 comment
Assignees
Labels
bug Something isn't working deploy Deploy issue

Comments

@jung-youjin
Copy link
Owner

image

9:50:06 AM: error [object Object] Input file contains unsupported image format
9:50:06 AM: 
9:50:06 AM: 
9:50:06 AM:   Error: Input file contains unsupported image format
9:50:06 AM: 
9:50:06 AM: not finished createPages - 0.093s
9:50:06 AM: not finished Generating image thumbnails - 0.055s
9:50:06 AM: npm ERR! code ELIFECYCLE
9:50:06 AM: npm ERR! errno 1
9:50:06 AM: npm ERR! gatsby-casper@0.0.0 build: `gatsby build`
9:50:06 AM: npm ERR! Exit status 1
9:50:06 AM: npm ERR!
9:50:06 AM: npm ERR! Failed at the gatsby-casper@0.0.0 build script.
9:50:06 AM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
9:50:06 AM: npm ERR! A complete log of this run can be found in:
9:50:06 AM: npm ERR!     /opt/buildhome/.npm/_logs/2022-12-13T00_50_06_967Z-debug.log
9:50:06 AM: ​
9:50:06 AM: ────────────────────────────────────────────────────────────────
9:50:06 AM:   "build.command" failed                                        
9:50:06 AM: ────────────────────────────────────────────────────────────────
9:50:06 AM: ​
9:50:06 AM:   Error message
9:50:06 AM:   Command failed with exit code 1: npm run build (https://ntl.fyi/exit-code-1)
9:50:06 AM: ​
9:50:06 AM:   Error location
9:50:06 AM:   In Build command from Netlify app:
9:50:06 AM:   npm run build
@jung-youjin jung-youjin added bug Something isn't working deploy Deploy issue labels Dec 13, 2022
@jung-youjin jung-youjin self-assigned this Dec 13, 2022
@jung-youjin
Copy link
Owner Author

Fixed with reference from gatsbyjs/gatsby#28204 :)

  • Set environment variable in Netflify SHARP_IGNORE_GLOBAL_LIBVIPS to true
  • Clear cache and retry deploy in Netlify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working deploy Deploy issue
Projects
None yet
Development

No branches or pull requests

1 participant