清单行1,第1栏,当投产时语法错误

问题描述 投票:0回答:1

[首先,我没有碰运气就搜索过平台和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"
}
reactjs manifest
1个回答
1
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.