清单行1,列1,语法推入生产阶段时出错

时间:2019-12-05 01:40:26

标签: reactjs manifest

首先,我没有碰运气就搜索过平台和Google。

当我投入生产时会得到一个随机清单错误。一键推,一切都很好。出现另一个错误。并且当出现错误时,所有图标链接都会中断。我完全不知道这一点。任何帮助表示赞赏。

https://zeit.com服务

实时应用:https://ryancarville.com

回购:https://github.com/ryancarville/portfolio-app

清单代码

{
  "short_name": "Full-Stack-Portfolio",
  "name": "Ryan-Carville-Full-Stack-Portfolio",
  "icons": [
    {
      "src": "favicon.ico",
      "sizes": "64x64 32x32 24x24 16x16",
      "type": "image/x-icon"
    },
    {
      "src": "/images/bequia-logo.png",
      "type": "image/png",
      "sizes": "204x156"
    },
    {
      "src": "/images/camera.png",
      "type": "image/png",
      "sizes": "340x340"
    },
    {
      "src": "/images/headphones.png",
      "type": "image/png",
      "sizes": "512x512"
    },
    {
      "src": "/images/food.png",
      "type": "image/png",
      "sizes": "512x512"
    },
    {
      "src": "/images/portrait.png",
      "type": "image/png",
      "sizes": "512x512"
    },
    {
      "src": "/images/products.png",
      "type": "image/png",
      "sizes": "512x512"
    },
    {
      "src": "/images/not-found.jpg",
      "type": "image/jpg",
      "sizes": "818x718"
    }
  ],
  "start_url": ".",
  "display": "standalone",
  "theme_color": "#ffffff",
  "background_color": "#ffffff"
}

1 个答案:

答案 0 :(得分:1)

您的manifast.json文件看起来不错。 问题出在您的服务器上。当浏览器请求manifast.json文件时,将404页作为响应。 这就是语法错误的原因。