Manifest is not valid JSON. Line: 1, column: 1, Unexpected token

前端 未结 10 1330
小鲜肉
小鲜肉 2020-12-09 08:31

keep getting this error: \"Manifest is not valid JSON. Line: 1, column: 1, Unexpected token.\" i don\'t understand what the issue is with my code? here is what i have so f

10条回答
  •  被撕碎了的回忆
    2020-12-09 08:39

    It seems your are using wrong values for browser_action key.To specify popup template you must use default_popup. It should be :

    {
      "manifest_version": 2,
      "name": "extension",
      "version": "1.0",
      "description": "My first Chrome extension.",
      "browser_action": {
          "default_icon": "icon.jpg",
          "default_popup": "popup.html"
      }
    }
    

提交回复
热议问题