question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error "gatsby-plugin-manifest" threw an error while running the onPostBootstrap lifecycle

See original GitHub issue

Description

Describe the issue that you’re seeing.

Steps to reproduce

Clear steps describing how to reproduce the issue. Please link to a reproduction, this makes your issue much easier to diagnose (seriously).

How to Make a Minimal Reproduction: https://www.gatsbyjs.com/contributing/how-to-make-a-reproducible-test-case/

Expected result

gatsby build succesfully compilation

Actual result

error “gatsby-plugin-manifest” threw an error while running the onPostBootstrap lifecycle:

20:49:08.045 | Input file contains unsupported image format 20:49:08.053 |   20:49:08.053 | Error: Input file contains unsupported image format 20:49:08.053 |   20:49:08.054 | not finished onPostBootstrap - 0.013s 20:49:09.612 | npm ERR! code ELIFECYCLE 20:49:09.612 | npm ERR! errno 1 20:49:09.617 | npm ERR! gatsby-starter-default@0.1.0 build: gatsby build 20:49:09.617 | npm ERR! Exit status 1 20:49:09.617 | npm ERR! 20:49:09.617 | npm ERR! Failed at the gatsby-starter-default@0.1.0 build script. 20:49:09.617 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 20:49:09.631 | npm ERR! A complete log of this run can be found in: 20:49:09.631 | npm ERR! /vercel/.npm/_logs/2020-12-23T17_49_09_617Z-debug.log 20:49:09.636 | Error: Command “npm run build” exited with 1 20:49:11.990 | Done with “package.json”

Environment

Vercel or Netlify When I run via localhost everything is working good Run gatsby info --clipboard in your project directory and paste the output here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

22reactions
danchistyakovcommented, Jan 31, 2021

@DCStudioProjects this issue is casued on netlify and I tried running the command npm rebuild sharp its still not workiing

Make these step by step:

  1. Remove node_modules
  2. npm cache clean --force
  3. npm rebuild --verbose sharp
  4. Remove package-lock.json
  5. Run npm install.

It solved my problem.

1reaction
rishFiletcommented, Apr 28, 2022

Never mind, this was sovled because of my gatsby-config setup: { resolve: 'gatsby-plugin-manifest', options: { icon: 'src/images/icon.png', }, },

This path does not exist

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error "gatsby-plugin-manifest" Input file contains unsupported ...
The error is from the gatsby-plugin-manifest, see screenshot below. ... threw an error while running the onPostBootstrap lifecycle: 12:08:25 PM: Input file ...
Read more >
GitHub Actions fail with Gatsby Error: Input file contains ...
error "gatsby-plugin-manifest" threw an error while running the onPostBootstrap lifecycle: Error: Input file contains unsupported image ...
Read more >
gatsby-plugin-manifest
APACHE: Error while trying to use the following icon from the Manifest. If you are on an Apache webserver and utilizing the automatic...
Read more >
Gatsby-source-plugin threw an error while running the ...
"gatsby-source-prismic" threw an error while running the createSchemaCustomization lifecycle: Cannot convert undefined or null to object ...
Read more >
Understanding the lifecycle of Gatsby - EQOLOT
To start a Gatsby project locally, we run the command gatsby develop in our ... At this phase of Bootstrap sequence we can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found