reactjsvisual-studiogoogle-chromeasp.net-coremanifest.json

Can't get rid of missing manifest.json error


I'm building an ASP.NET Core app with ReactJs front-end in Visual Studio 2017.

Recently, I started to notice the missing manifest.json error in the console -- see below. It doesn't seem to effect my app but I do want to get rid of this error. enter image description here

If I view my app in Edge, I don't see the missing manifest.json error so this error seems to be contained to Chrome only.

I published the app to Azure and again, in Chrome, I'm getting the same error but not in Edge.

Any idea how I can solve it?


Solution

  • Most probably there is a reference to manifest.json somewhere in the project, while the file/resource itself does not exist.

    Check to see if you have any link tags with rel=manifest similar to

    <link rel="manifest" href="/manifest.webmanifest">
    

    The .webmanifest extension is specified in the Media type registration section of the specification, but browsers generally support manifests with other appropriate extensions like .json.

    ie

    <link rel="manifest" href="/manifest.json">
    

    and remove it from the code to stop the error.

    Reference Web App Manifest