我一直在本地开发 chrome 扩展。我刚刚完成并想将其上传到 Chrome 网上应用店。当我上传它并告诉我:
An error occurred: Invalid manifest. If your manifest includes comments, please remove them as our gallery does not support them yet.
我检查了 JSON 以确保它是有效的,并且据我所知它是完全有效的。我尝试以不同的方式命名并上传它,但它仍然无法正常工作。我也尝试更改编码,但没有奏效。清单如下
{
"name": "Name",
"version": "0.0.0.0.1",
"manifest_version": 2,
"description": "Description",
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
},
"icons": { "128": "icon.png"},
"permissions": [
"tabs",
"http://*/*",
"webNavigation",
"history",
"storage"
],
"content_scripts": [{
"matches": ["http://*/*", "https://*/*"],
"js": ["js/jquery.min.js", "js/tab.js"]
}],
"background": {
"page": "background.html"
}
}
有没有人知道问题是什么?在最终完成扩展后得到这个真的很令人沮丧。