简体   繁体   English

Chrome扩展程序清单错误

[英]Chrome Extension manifest error

I got following error Manifest is not valid JSON. Line: 5, column: 25, Syntax error. 我收到以下错误Manifest is not valid JSON. Line: 5, column: 25, Syntax error. Manifest is not valid JSON. Line: 5, column: 25, Syntax error.

My manifest.json file 我的manifest.json文件

{
    "name":"webrun",
    "manifest_version":0.5.1,
    "description":"Let code run in web!",
    "browser_action":{
        "default_icon":"icon.png",
        "default_title":"webrun",
        "default_popup":"index.html"
    }
}

Generally, http://jsonlint.com/ can be used to validate any JSON files. 通常, http://jsonlint.com/可用于验证任何JSON文件。 0.5.1 is an invalid value in JSON. 0.5.1是JSON中的无效值。

manifest_version has to be an integer , it can take value 1 or 2. Check Documentation . manifest_version必须为整数 ,其值可以为1或2。请查看Documentation

To specify the version of your Chrome extension, use the "version" key, and quote the value: 要指定您的Chrome扩展程序的版本,请使用"version"键,并引用以下值:

{
    "name": "webrun",
    "manifest_version": 2,
    "version": "0.5.1",
    "description": "Let code run in web!",
    "browser_action": {
        "default_icon": "icon.png",
        "default_title": "webrun",
        "default_popup": "index.html"
    }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM