表題の件のエラーが発生し問題が解決できません。
Manifest: property 'icons' ignored, type array expected.
現在、新しいタブを使ったChrome拡張機能を開発中なのですが、上記のManifestファイルでiconsを配列にしなさいとエラーが発生しているのですが解決方法がわかりません。
**発生状況なのですが、今まで作っていたプロジェクトのフロント部分をReact対応させるため、今まで使っていたManifestファイルを置き換えたときから始まりました。**Reactなしのプロジェクトではこのようなエラーは発生していません。エラーの発生の解決方法などヒントになるようなことを教えていただけると嬉しいです。
manifest.json
Json
1{ 2 "manifest_version": 2, 3 "name": "□□□□□ 20190509_2", 4 "version": "0.0.2", 5 "chrome_url_overrides": { 6 "newtab": "index.html" 7 }, 8 "icons": { 9 "16": "img/icons/icon16.png", 10 "32": "img/icons/icon32.png", 11 "128": "img/icons/icon128.png" 12 }, 13 "background": { 14 "page": "background.html" 15 }, 16 "permissions": [ "storage", "activeTab", "tabs", "□□□□□" ], 17 "web_accessible_resources": [ "login.html" ], 18 "content_security_policy": "script-src 'self' '□□□□□' http://localhost:8097; object-src 'self'" 19}
※試したこと以下のようにiconsの部分を書き換えた
Json
1 "icons": [ 2 { 3 "src": "img/icons/icon16.png", 4 "sizes": "16x16", 5 "type": "image/png" 6 }, 7 { 8 "src": "img/icons/icon32.png", 9 "sizes": "32x32", 10 "type": "image/png" 11 }, 12 { 13 "src": "img/icons/icon128.png", 14 "sizes": "128x128", 15 "type": "image/png" 16 } 17 ],
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー