简体   繁体   English

关于我的 Manifest.json 的反应部署错误

[英]React Deployment error regarding my Manifest.json

I seem to be getting this error on all my browsers in deployment?我似乎在部署中的所有浏览器上都收到此错误? Not sure what the problem is.不确定是什么问题。

error: Manifest: Line: 1, column: 1, Syntax error错误: Manifest: Line: 1, column: 1, Syntax error

What is wrong with my code below?我下面的代码有什么问题?

manifest.json : manifest.json

{
  "short_name": "React App",
  "name": "Create React App Sample",
  "icons": [
    {
      "src": "favicon.ico",
      "sizes": "64x64 32x32 24x24 16x16",
      "type": "image/x-icon"
    },
    {
      "src": "logo192.png",
      "type": "image/png",
      "sizes": "192x192"
    },
    {
      "src": "logo512.png",
      "type": "image/png",
      "sizes": "512x512"
    }
  ],
  "start_url": ".",
  "display": "standalone",
  "theme_color": "#000000",
  "background_color": "#ffffff"
}

What I can guess start_url might be causing this issue, please find below my application manifect.json file我猜start_url可能会导致这个问题,请在我的应用程序manifect.json文件下面找到

 { "short_name": "calculate_comps", "name": "Calculate Components", "icons": [ { "src": "favicon.ico", "sizes": "64x64 32x32 24x24 16x16", "type": "image/x-icon" } ], "start_url": "./index.html", "display": "standalone", "theme_color": "#000000", "background_color": "#ffffff"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM