清单第 1 行,第 1 列,推送到生产环境时出现语法错误
Manifest Line 1, Column 1, Syntax Error when pushed to production
首先,我搜索了平台,google 但没有成功。
当我推送到生产环境时出现随机清单错误。轻轻一按,一切都很好。另一个,错误出现。当它出错时,所有图标链接都会中断。我根本想不通。感谢任何帮助。
回购: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"
}
您的 manifast.json 文件看起来不错。
问题出在您的服务器上。当浏览器请求 manifast.json 文件时,404 页面作为响应。
这就是语法错误的原因。
首先,我搜索了平台,google 但没有成功。
当我推送到生产环境时出现随机清单错误。轻轻一按,一切都很好。另一个,错误出现。当它出错时,所有图标链接都会中断。我根本想不通。感谢任何帮助。
回购: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"
}
您的 manifast.json 文件看起来不错。 问题出在您的服务器上。当浏览器请求 manifast.json 文件时,404 页面作为响应。 这就是语法错误的原因。