首页 > 建站教程 > 其他 >  Manifest version 2 is deprecated, and support will be removed in 2023. See https://developer.chrome.com/blog/mv2-transition/ for more details.正文

Manifest version 2 is deprecated, and support will be removed in 2023. See https://developer.chrome.com/blog/mv2-transition/ for more details.

谷歌插件开发,manifest.json配置如下:

{
    "manifest_version": 2,
    "name": "书签",
    "version":"1.0",
    "description":"书签",
    "icons":{
        "128":"img/128.png",
        "48":"img/48.png",
        "16":"img/16.png"
    },
    "page_action":{
        "default_icon":"img/128.png",
        "default_popup":"bookmark.html"
    }
}


当导入到chrome,提示如下错误:

Manifest version 2 is deprecated, and support will be removed in 2023. See https://developer.chrome.com/blog/mv2-transition/ for more details.


1.png


这是因为MV2版本的chrome插件在2023年停止支持。将 manifest_version 的版本号改成 3