清单行1,列1,语法推入生产阶段时出错 [英] Manifest Line 1, Column 1, Syntax Error when pushed to production
问题描述
首先,我没有碰运气就搜索过平台和Google.
当我投入生产时会得到一个随机的清单错误.一键推,一切都很好.与另一个,出现错误.并且当出现错误时,所有图标链接都会中断.我完全不知道这一点.感谢您的帮助.
提供实时应用: https://ryancarville.com
回购: 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页作为响应. 这就是语法错误的原因.
First I have scoured the platform and google with no luck.
Getting a random Manifest error when I push to production. With one push everything is fine. With another, the error appears. And when it errors all the icon links break. I can't figure this out at all. Any help is appreciated.
Served from https://zeit.com
live app: https://ryancarville.com
repo: https://github.com/ryancarville/portfolio-app
manifest code
{
"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"
}
your manifast.json file looks good. the problem is with your server. when the browser is requesting for manifast.json file 404 page is served as response. That is why syntax error.
这篇关于清单行1,列1,语法推入生产阶段时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!