chr*_*ude 5 json google-chrome manifest google-chrome-extension
我一直在本地开发chrome扩展.我刚刚完成它并希望将其上传到Chrome网上应用店.当我上传它并告诉我:
An error occurred: Invalid manifest. If your manifest includes comments, please remove them as our gallery does not support them yet.
Run Code Online (Sandbox Code Playgroud)
我检查了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"
}
}
Run Code Online (Sandbox Code Playgroud)
有没有人知道问题是什么?在最终完成扩展后得到这个真的很令人沮丧.
使用了manifest.json,得到了这个错误.
无法从'/ Users/jjperezaguinaga/samples/ext'加载扩展程序.必需值"版本"缺失或无效.它必须在1-4个点分隔的整数之间,每个整数在0到65536之间.
我从你的版本中删除了一些0,我能够加载它.
| 归档时间: |
|
| 查看次数: |
5272 次 |
| 最近记录: |