无法摆脱丢失的manifest.json错误 [英] Can't get rid of missing manifest.json error
问题描述
我正在Visual Studio 2017中使用ReactJs
前端构建一个ASP.NET Core
应用.
I'm building an ASP.NET Core
app with ReactJs
front-end in Visual Studio 2017.
最近,我开始注意到控制台中丢失的manifest.json
错误-参见下文.它似乎并没有影响我的应用程序,但我确实想摆脱此错误.
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.
如果我在Edge中查看我的应用,则看不到丢失的manifest.json
错误,因此该错误似乎仅包含在Chrome中.
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.
我将应用程序发布到Azure,然后再次在Chrome中出现相同的错误,但没有在Edge中出现.
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?
推荐答案
很可能在项目中某个地方引用了manifest.json
,而文件/资源本身不存在.
Most probably there is a reference to manifest.json
somewhere in the project, while the file/resource itself does not exist.
检查是否有与rel=manifest
类似的link
标签
Check to see if you have any link
tags with rel=manifest
similar to
<link rel="manifest" href="/manifest.webmanifest">
在规范的媒体类型注册部分中指定了
.webmanifest
扩展名,但是浏览器通常支持带有其他适当扩展名的清单,例如.json
.
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
.
即
<link rel="manifest" href="/manifest.json">
并将其从代码中删除以停止错误.
and remove it from the code to stop the error.
参考 Web应用清单
这篇关于无法摆脱丢失的manifest.json错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!