Manifest: Line: 1, column: 1, Syntax error on Chrome browser

后端 未结 5 2038
暖寄归人
暖寄归人 2021-02-06 05:48

I have a react app that built through npm run build. GET and POST request from the front-end to back-end gives status 200 but I am getting a weird error that may cause all the i

5条回答
  •  暖寄归人
    2021-02-06 06:17

    I had the same problem when I moved my Codesandbox project to local. In my case, there was no manifest.json file in the public folder. I solved it by adding the default manifest.json that create-react-app generates:

    {
      "short_name": "CloseWeUI",
      "name": "The front-end UI for CloseWe",
      "icons": [
        {
          "src": "favicon.ico",
          "sizes": "64x64 32x32 24x24 16x16",
          "type": "image/x-icon"
        }
      ],
      "start_url": ".",
      "display": "standalone",
      "theme_color": "#000000",
      "background_color": "#ffffff"
    }
    

提交回复
热议问题