Answer the question
In order to leave comments, you need to log in
Error packaging Opera extension
I loaded the unpacked extension into Opera - it works without problems.
I pack the extension - the error does not pop up.
When uploading for verification, the error "manifest.json allowed only in the root directory."
When copying a packaged extension to the window of installed extensions, it says "Manifest file is invalid".
Before that, I successfully loaded another extension. Manifest are of the same type. What's the matter I do not understand.
{
"background": {
"scripts": [ "kinopoisk.js" ]
},
"description": "\u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u044b\u0439 \u043f\u043e\u0438\u0441\u043a \u0432 \u0431\u0430\u0437\u0435 kinopoisk.ru",
"developer": {
"name": "Damaks",
"url": "http://damaks.me"
},
"icons": {
"16": "favicon-16.png",
"48": "favicon-48.png"
},
"manifest_version": 2,
"name": "\u041f\u043e\u0438\u0441\u043a \u0432 \u0431\u0430\u0437\u0435 \u041a\u0438\u043d\u043e\u041f\u043e\u0438\u0441\u043a",
"permissions": [ "contextMenus" ],
"update_url": "https://extension-updates.opera.com/api/omaha/update/",
"version": "1.0"
}
Answer the question
In order to leave comments, you need to log in
Describe step by step how you create an extension. The root of the problem in the directory is that the system can't find the file manifest.json
, not that it's wrong. There can be two reasons:
- You manually pack the folder with the extension into the archive, and not the list of files in this folder (there should be no nesting)
- You pack the extension through the browser using the Cyrillic system paths, for example: Рабочий стол\myExtension\…
, because of this, the archive may turn out broken (the bug is known, even in Chrome, we fixed it, but haven't released it yet).
Solution: put the folder with the extension like this: C:\myExtension\…
and specify this folder in the browser's extension packer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question