1

我的文件夹中有一个带有favicon.ico格式(我只是将其重命名)的图标图像src。我只想顺利通过构建。谢谢您的帮助

2:34:24 PM: error "gatsby-plugin-manifest" threw an error while running the onPostBootstrap lifecycle:
2:34:24 PM: Input file contains unsupported image format
2:34:24 PM: 
2:34:24 PM: 
2:34:24 PM:   Error: Input file contains unsupported image format
2:34:24 PM: 
2:34:24 PM: not finished onPostBootstrap - 0.026s

这是我的 gatsby-config.js

plugins: [
    {
      resolve: `gatsby-plugin-manifest`,
      options: {
        name: `GatsbyJS`,
        short_name: `GatsbyJS`,
        start_url: `/`,
        background_color: `#f7f0eb`,
        theme_color: `#a2466c`,
        display: `standalone`,
        icon: `src/favicon.ico`,
      },
    },
  ],


4

1 回答 1

0

通过使用以下方式升级依赖项最终解决了该问题:

yarn upgrade
于 2020-12-09T06:28:22.320 回答